Class DependencyObjectCollection
Implements Dependency Object collection
Inheritance
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Interactivity
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class DependencyObjectCollection : DependencyObject, IObservableVector<DependencyObject>, IList<DependencyObject>, ICollection<DependencyObject>, IEnumerable<DependencyObject>, IEnumerable
Constructors
DependencyObjectCollection()
Initializes a new instance of the DependencyObjectCollection class.
Declaration
public DependencyObjectCollection()
Properties
Count
Gets the number of elements contained in the System.Collections.Generic.ICollection<T>.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsReadOnly
Gets a value indicating whether the System.Collections.Generic.ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Gets or sets the element at the specified index.
Declaration
public DependencyObject this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index. |
Property Value
Type | Description |
---|---|
DependencyObject |
Methods
Add(DependencyObject)
Adds an item to the System.Collections.Generic.ICollection<T>.
Declaration
public void Add(DependencyObject item)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | item | The object to add to the System.Collections.Generic.ICollection<T>. |
Clear()
Removes all items from the System.Collections.Generic.ICollection<T>.
Declaration
public void Clear()
Contains(DependencyObject)
Determines whether the System.Collections.Generic.ICollection<T> contains a specific value.
Declaration
public bool Contains(DependencyObject item)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | item | The object to locate in the System.Collections.Generic.ICollection<T>. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
CopyTo(DependencyObject[], Int32)
Copies to.
Declaration
public void CopyTo(DependencyObject[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject[] | array | The array. |
System.Int32 | arrayIndex | Index of the array. |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<DependencyObject> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<DependencyObject> | An enumerator that can be used to iterate through the collection. |
IndexOf(DependencyObject)
Determines the index of a specific item in the System.Collections.Generic.IList<T>.
Declaration
public int IndexOf(DependencyObject item)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | item | The object to locate in the System.Collections.Generic.IList<T>. |
Returns
Type | Description |
---|---|
System.Int32 | The index of |
Insert(Int32, DependencyObject)
Inserts an item to the System.Collections.Generic.IList<T> at the specified index.
Declaration
public void Insert(int index, DependencyObject item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index at which |
DependencyObject | item | The object to insert into the System.Collections.Generic.IList<T>. |
Remove(DependencyObject)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection<T>.
Declaration
public bool Remove(DependencyObject item)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | item | The object to remove from the System.Collections.Generic.ICollection<T>. |
Returns
Type | Description |
---|---|
System.Boolean | true if |
RemoveAt(Int32)
Removes the System.Collections.Generic.IList<T> item at the specified index.
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The zero-based index of the item to remove. |
Events
VectorChanged
Occurs when [vector changed].
Declaration
public event VectorChangedEventHandler<DependencyObject> VectorChanged
Event Type
Type | Description |
---|---|
VectorChangedEventHandler<DependencyObject> |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |