Show / Hide Table of Contents

Class DependencyObjectCollection

Implements Dependency Object collection

Inheritance
System.Object
DependencyObject
DependencyObjectCollection
ActionCollection
BehaviorCollection
Implements
IObservableVector<DependencyObject>
System.Collections.Generic.IList<DependencyObject>
System.Collections.Generic.ICollection<DependencyObject>
System.Collections.Generic.IEnumerable<DependencyObject>
System.Collections.IEnumerable
Inherited Members
DependencyObject.DependencyObjectType
DependencyObject.IsSealed
DependencyObject.Equals(Object)
DependencyObject.GetHashCode()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetLocalValueEnumerator()
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.OnPropertyChanged(DependencyProperty)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.SetBinding(DependencyProperty, Binding)
DependencyObject.SetResourceReference(DependencyProperty, Object)
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 item is found in the System.Collections.Generic.ICollection<T>; otherwise, false.

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 item if found in the list; otherwise, -1.

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 item should be inserted.

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 item was successfully removed from the System.Collections.Generic.ICollection<T>; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection<T>.

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.

Implements

IObservableVector<T>
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Back to top Generated by DocFX