ReadOnlyDockingWindowBaseCollection<T> Class
Represents the base class for a read-only observable collection of DockingWindow objects.
public class ReadOnlyDockingWindowBaseCollection<T> : ReadOnlyObservableCollection<T> where T : DockingWindow
- Type Parameters:
-
T-The type of DockingWindow in this collection.
- Inheritance:
- object ReadOnlyCollection<T> ReadOnlyObservableCollection<T> object
Constructors
ReadOnlyDockingWindowBaseCollection(ObservableCollection<T>)
Represents the base class for a read-only observable collection of DockingWindow objects.
public ReadOnlyDockingWindowBaseCollection(ObservableCollection<T> list)
| Parameter | Type | Description |
|---|---|---|
| list | ObservableCollection<T> | The collection with which to create this instance. |
Properties
this[Guid]
The item with the specified UniqueId value.
public T? this[Guid uniqueId] { get; }
| Parameter | Type | Description |
|---|---|---|
| uniqueId | Guid | The unique ID value to locate in the collection. |
Property Value
- T
this[string]
The item with the specified Name value.
public T? this[string name] { get; }
| Parameter | Type | Description |
|---|---|---|
| name | string | The name value to locate in the collection. |
Property Value
- T
Methods
Contains(Guid)
Determines whether an item with the specified UniqueId value is in the collection.
public bool Contains(Guid uniqueId)
| Parameter | Type | Description |
|---|---|---|
| uniqueId | Guid | The unique ID value to locate in the collection. |
Returns
- bool:
trueif an item with the specifiedUniqueIdvalue is found in the collection; otherwise,false.
Contains(string)
Determines whether an item with the specified Name value is in the collection.
public bool Contains(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | The name value to locate in the collection. |
Returns
- bool:
trueif an item with the specifiedNamevalue is found in the collection; otherwise,false.
IndexOf(Guid)
Searches for an item with the specified UniqueId value and
returns the zero-based index of the first occurrence within the entire collection, if found; otherwise, -1.
public int IndexOf(Guid uniqueId)
| Parameter | Type | Description |
|---|---|---|
| uniqueId | Guid | The unique ID value to locate in the collection. |
Returns
IndexOf(string)
Searches for an item with the specified Name value and
returns the zero-based index of the first occurrence within the entire collection, if found; otherwise, -1.
public int IndexOf(string name)
| Parameter | Type | Description |
|---|---|---|
| name | string | The name value to locate in the collection. |
Returns
ToArray()
Returns a strongly-typed array containing the items in this collection.
public T[] ToArray()
Returns
- T[]
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()