In This Article

ToolWindowCollection Class

Stores a collection of ToolWindow objects.

public class ToolWindowCollection : SimpleReadOnlyCollection<ToolWindow>
Inheritance:
object ReadOnlyCollection<ToolWindow> SimpleReadOnlyCollection<ToolWindow> object
Derived:
ToolWindowContainerToolWindowCollection

Constructors

ToolWindowCollection()

Stores a collection of ToolWindow objects.

public ToolWindowCollection()

Properties

this[string?]

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

Methods

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(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.

Inherited Members

Extension Methods