SelectionNodeBase<T> Class
Base class for selection models.
Definition
Namespace: Avalonia.Controls.Selection
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public abstract class SelectionNodeBase<T>
Public MustInherit Class SelectionNodeBase(Of T)
[<AbstractClassAttribute>]
type SelectionNodeBase<'T> = class end
Inheritance | Object → SelectionNodeBase(T) |
Derived | Avalonia.Controls.Selection.SelectionModel(T) |
Type Parameters
- The type of the element being selected.
Constructors
SelectionNodeBase(T)() | Initializes a new instance of the SelectionNodeBase(T) class |
Properties
ItemsView | Gets an ItemsSourceView(T) of the Source. |
RangesEnabled | Gets or sets a value indicating whether range selection is currently enabled for the selection node. |
Source | Gets or sets the source collection. |
Methods
CommitDeselect(Int32, Int32) | If RangesEnabled, removes the specified range from the selection. |
CommitSelect(Int32, Int32) | If RangesEnabled, adds the specified range to the selection. |
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
GetHashCode() | Serves as the default hash function. (Inherited from Object) |
GetType() | Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() | Creates a shallow copy of the current Object. (Inherited from Object) |
OnIndexesChanged(Int32, Int32) | Called by OnSourceCollectionChanged(NotifyCollectionChangedEventArgs), detailing the indexes changed by the collection changing. |
OnItemsAdded(Int32, IList) | Called by OnSourceCollectionChanged(NotifyCollectionChangedEventArgs) when items are added to the source collection. |
OnSelectionRemoved(Int32, Int32, IReadOnlyList(T)) | Called by OnSourceCollectionChanged(NotifyCollectionChangedEventArgs), detailing the items removed by a collection change. |
OnSourceCollectionChanged(NotifyCollectionChangedEventArgs) | Called when the Source collection changes. |
OnSourceCollectionChangeFinished() | Called when the source collection has finished changing, and all CollectionChanged handlers have run. |
OnSourceCollectionChangeStarted() | Called when the source collection starts changing. |
OnSourceReset() | Called by OnSourceCollectionChanged(NotifyCollectionChangedEventArgs), on collection reset. |
ToString() | Returns a string that represents the current object. (Inherited from Object) |