Skip to main content

SelectionNodeBase<T> Class

Base class for selection models.

Definition

Namespace: Avalonia.Controls.Selection
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public abstract class SelectionNodeBase<T>

View Source
InheritanceObject → SelectionNodeBase(T)
DerivedAvalonia.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

ItemsViewGets an ItemsSourceView(T) of the Source.
RangesEnabledGets or sets a value indicating whether range selection is currently enabled for the selection node.
SourceGets 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)

See Also

Reference

Avalonia.Controls.Selection Namespace