In This Article

DockContainerCollection Class

Stores a collection of DockContainer objects.

public class DockContainerCollection : ReadOnlyCollectionBase
Inheritance:
object ReadOnlyCollectionBase object

Constructors

DockContainerCollection()

Initializes a new instance of the DockContainerCollection class.

public DockContainerCollection()

Remarks

The default constructor initializes all fields to their default values.

Properties

this[int]

Gets the DockContainer at the specified index.

[C#] In C#, this property is the indexer for the DockContainerCollection class.

public DockContainer this[int index] { get; }
Parameter Type Description
index int

The index of the DockContainer to return.

Property Value

DockContainer:

The DockContainer at the specified index.

Methods

Contains(DockContainer)

Determines whether the specified DockContainer is in the collection.

public bool Contains(DockContainer value)
Parameter Type Description
value DockContainer

The DockContainer to look for.

Returns

bool:

true if the collection contains the DockContainer; otherwise, false.

IndexOf(DockContainer)

Returns the index of the specified DockContainer in the collection.

public int IndexOf(DockContainer value)
Parameter Type Description
value DockContainer

The DockContainer to look for.

Returns

int:

If found, the index where the DockContainer is in the collection; otherwise, -1.

ToArray(Type)

Copies the elements of the collection to a new array of the specified type.

public virtual Array ToArray(Type type)
Parameter Type Description
type Type

The Type of array to create and copy elements to.

Returns

Array:

An array of the specified type containing copies of the elements of the collection.

Inherited Members