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