Provides a DeferrableObservableCollection<T> that is capable of adding/removing the logical parent, and optionally the visual parent, of the items in the collection.
- Type Parameters:
-
T
-The type of items.
- Inheritance:
-
object
Collection<T>
Observable
Collection <T> DeferrableObservable <T> objectCollection
- Derived:
-
Circular
Pointer CircularCollection Range CircularCollection Scale CircularCollection Tick CircularCollection Tick LinearSet Collection Pointer LinearCollection Range LinearCollection Scale LinearCollection Tick LinearCollection Tick Set Collection
Constructors
LogicalChildrenCollection(ILogicalParent)
Initializes a new instance of the LogicalChildrenCollection<T> class.
Parameter | Type | Description |
---|---|---|
parent | ILogical |
The parent. |
LogicalChildrenCollection(ILogicalParent, bool)
Initializes a new instance of the LogicalChildrenCollection<T> class.
Parameter | Type | Description |
---|---|---|
parent | ILogical |
The parent. |
areVisualChildren | bool | if set to |
Remarks
If areVisualChildren
is set to true
and parent
implements
IVisual
Properties
Parent
Gets the logical parent of the items in this collection.
Property Value
- ILogical
Parent : The logical parent.
Methods
ClearItems()
Removes all items from the collection.
InsertItem(int, T)
Inserts an item into the collection at the specified index.
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index at which |
item | T | The object to insert. |
RemoveItem(int)
Removes the item at the specified index of the collection.
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index of the element to remove. |
SetItem(int, T)
Replaces the element at the specified index.
Parameter | Type | Description |
---|---|---|
index | int | The zero-based index of the element to replace. |
item | T | The new value for the element at the specified index. |
Inherited Members
- DeferrableObservableCollection<T>.AddRange(IEnumerable<T>)
- DeferrableObservableCollection<T>.BeginUpdate()
- DeferrableObservableCollection<T>.EndUpdate()
- DeferrableObservableCollection<T>.OnCollectionChanged(NotifyCollectionChangedEventArgs)
- DeferrableObservableCollection<T>.OnPropertyChanged(PropertyChangedEventArgs)
- DeferrableObservableCollection<T>.ToArray()
- DeferrableObservableCollection<T>.IsDirty
- DeferrableObservableCollection<T>.IsPropertyChangeSuspended
-
object.
Get Type() -
object.
Memberwise Clone() -
object.
To String() -
object.
Equals(object) -
object.
Equals(object, object) -
object.
Reference Equals(object, object) -
object.
Get Hash Code()