In This Article

ToolWindowCollection Class

Stores a collection of ToolWindow objects.

public class ToolWindowCollection : ReadOnlyCollectionBase
Inheritance:
object ReadOnlyCollectionBase object
Derived:
ToolWindowContainerToolWindowCollection

Constructors

ToolWindowCollection()

Initializes a new instance of the ToolWindowCollection class.

public ToolWindowCollection()

Remarks

The default constructor initializes all fields to their default values.

Properties

this[int]

Gets the ToolWindow at the specified index.

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

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

The index of the ToolWindow to return.

Property Value

ToolWindow:

The ToolWindow at the specified index.

this[string]

Gets the ToolWindow with the specified key.

public ToolWindow this[string key] { get; }
Parameter Type Description
key string

The key of the ToolWindow to return.

Property Value

ToolWindow:

The ToolWindow with the specified key.

Methods

Contains(ToolWindow)

Determines whether the specified ToolWindow is in the collection.

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

The ToolWindow to look for.

Returns

bool:

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

Contains(string)

Determines whether the a ToolWindow with the specified key is in the collection.

public virtual bool Contains(string key)
Parameter Type Description
key string

The key of the ToolWindow to look for.

Returns

bool:

true if the collection contains a ToolWindow with the specified key; otherwise, false.

IndexOf(ToolWindow)

Returns the index of the specified ToolWindow in the collection.

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

The ToolWindow to look for.

Returns

int:

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

IndexOf(string)

Returns the index of the ToolWindow with the specified key in the collection.

public int IndexOf(string key)
Parameter Type Description
key string

The key of the ToolWindow to look for.

Returns

int:

If found, the index where the ToolWindow 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