Class AttachableObjectCollection<TOwner, TObject>
Represents a collection of attachable objects that can be associated with an owner.
Inheritance
Namespace: Telerik.Maui.Controls
Assembly: Telerik.Maui.Controls.dll
Syntax
public class AttachableObjectCollection<TOwner, TObject> : ObservableCollection<TObject> where TOwner : class where TObject : AttachableObject<TOwner>
Type Parameters
TOwner
The type of the owner object. |
TObject
The type of attachable objects in the collection. |
Methods
ClearItems()
Removes all items from the collection and detaches them from the owner.
Declaration
protected override void ClearItems()
InsertItem(Int32, TObject)
Inserts an item at the specified index and attaches it to the owner.
Declaration
protected override void InsertItem(int index, TObject item)
Parameters
System.Int32
index
The zero-based index at which the item should be inserted. |
TObject
item
The item to insert. |
RemoveItem(Int32)
Removes the item at the specified index and detaches it from the owner.
Declaration
protected override void RemoveItem(int index)
Parameters
System.Int32
index
The zero-based index of the item to remove. |
SetItem(Int32, TObject)
Replaces the item at the specified index and updates owner associations.
Declaration
protected override void SetItem(int index, TObject item)
Parameters
System.Int32
index
The zero-based index of the item to replace. |
TObject
item
The new item to set at the specified index. |