SelectionModelT Class

Definition

Namespace: Avalonia.Controls.Selection
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public class SelectionModel<T> : SelectionNodeBase<T>, 
	ISelectionModel, INotifyPropertyChanged
Inheritance
Object    SelectionNodeBaseT    SelectionModelT
Implements
ISelectionModel, INotifyPropertyChanged

Type Parameters

T

Constructors

SelectionModelTInitializes a new instance of the SelectionModelT class
SelectionModelT(IEnumerableT)Initializes a new instance of the SelectionModelT class

Properties

AnchorIndex 
Count 
ItemsView Gets an ItemsSourceViewT of the Source.
(Inherited from SelectionNodeBaseT)
RangesEnabled Gets or sets a value indicating whether range selection is currently enabled for the selection node.
(Inherited from SelectionNodeBaseT)
SelectedIndex 
SelectedIndexes 
SelectedItem 
SelectedItems 
SingleSelect 
Source 

Methods

BatchUpdate 
BeginBatchUpdate 
Clear 
CommitDeselect(Int32, Int32) If RangesEnabled, removes the specified range from the selection.
(Inherited from SelectionNodeBaseT)
CommitSelect(Int32, Int32) If RangesEnabled, adds the specified range to the selection.
(Inherited from SelectionNodeBaseT)
Deselect(Int32) 
DeselectRange(Int32, Int32) 
EndBatchUpdate 
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsSelected(Int32) 
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnIndexesChanged(Int32, Int32)
(Overrides SelectionNodeBaseTOnIndexesChanged(Int32, Int32))
OnItemsAdded(Int32, IList)
(Overrides SelectionNodeBaseTOnItemsAdded(Int32, IList))
OnSelectionRemoved(Int32, Int32, IReadOnlyListT)
(Overrides SelectionNodeBaseTOnSelectionRemoved(Int32, Int32, IReadOnlyListT))
OnSourceCollectionChanged(NotifyCollectionChangedEventArgs)
(Overrides SelectionNodeBaseTOnSourceCollectionChanged(NotifyCollectionChangedEventArgs))
OnSourceCollectionChangeFinished
(Overrides SelectionNodeBaseTOnSourceCollectionChangeFinished)
OnSourceCollectionChangeStarted
(Overrides SelectionNodeBaseTOnSourceCollectionChangeStarted)
OnSourceReset
(Overrides SelectionNodeBaseTOnSourceReset)
RaisePropertyChanged(String) 
Select(Int32) 
SelectAll 
SelectRange(Int32, Int32) 
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Extension Methods

See Also