DocumentWindowCollection Class
Stores a collection of DocumentWindow objects.
public class DocumentWindowCollection : ReadOnlyCollectionBase
- Inheritance:
- object ReadOnlyCollectionBase object
Constructors
DocumentWindowCollection()
Initializes a new instance of the DocumentWindowCollection
class.
public DocumentWindowCollection()
Remarks
The default constructor initializes all fields to their default values.
Properties
this[int]
Gets the DocumentWindow at the specified index.
[C#] In C#, this property is the indexer for the DocumentWindowCollection
class.
public DocumentWindow this[int index] { get; }
Parameter | Type | Description |
---|---|---|
index | int | The index of the DocumentWindow to return. |
Property Value
- DocumentWindow:
The DocumentWindow at the specified index.
this[string]
Gets the DocumentWindow with the specified key.
public DocumentWindow this[string key] { get; }
Parameter | Type | Description |
---|---|---|
key | string | The key of the DocumentWindow to return. |
Property Value
- DocumentWindow:
The DocumentWindow with the specified key.
Methods
Contains(DocumentWindow)
Determines whether the specified DocumentWindow is in the collection.
public bool Contains(DocumentWindow value)
Parameter | Type | Description |
---|---|---|
value | DocumentWindow | The DocumentWindow to look for. |
Returns
- bool:
true
if the collection contains the DocumentWindow; otherwise,false
.
Contains(string)
Determines whether the a DocumentWindow with the specified key is in the collection.
public virtual bool Contains(string key)
Parameter | Type | Description |
---|---|---|
key | string | The key of the DocumentWindow to look for. |
Returns
- bool:
true
if the collection contains a DocumentWindow with the specified key; otherwise,false
.
IndexOf(DocumentWindow)
Returns the index of the specified DocumentWindow in the collection.
public int IndexOf(DocumentWindow value)
Parameter | Type | Description |
---|---|---|
value | DocumentWindow | The DocumentWindow to look for. |
Returns
- int:
If found, the index where the DocumentWindow is in the collection; otherwise,
-1
.
IndexOf(string)
Returns the index of the DocumentWindow with the specified key in the collection.
public int IndexOf(string key)
Parameter | Type | Description |
---|---|---|
key | string | The key of the DocumentWindow to look for. |
Returns
- int:
If found, the index where the DocumentWindow 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.