IMultiSelectableItemsView interface
Extends ISelectableItemsView with a multi-selection set. The inherited SelectedIndex acts as the primary (last-acted / focus) index and the range anchor base; SelectedIndices carries the full set.
Implemented opt-in (only by views that support it) so existing single-selection paths are unaffected.
public interface IMultiSelectableItemsView : ISelectableItemsViewMembers
Section titled “Members”| name | description |
|---|---|
| AnchorIndex { get; } | Gets the range anchor index (the base for Shift-range operations), or -1 when none. |
| SelectedIndices { get; } | Gets the selected indices in ascending order (snapshot). |
| SelectionMode { get; set; } | Gets or sets the selection mode. Switching to Single collapses the set to the primary. |
| event SelectedIndicesChanged | Raised when the selected set changes. |
| ClearSelection() | Clears the entire selection. |
| IsSelected(…) | Returns whether the item at index is selected. |
| SelectRange(…) | Selects the inclusive range from anchorIndex to targetIndex. When clearExisting is true the set is replaced; otherwise the range is added. The primary becomes targetIndex; the anchor is preserved. |
| SelectSingle(…) | Clears the set and selects only index, setting it as primary and anchor. |
| SetSelected(…) | Explicitly sets membership of index without changing the anchor. |
| ToggleSelected(…) | Adds or removes index from the set, setting it as primary and anchor. |
See Also
Section titled “See Also”- interface ISelectableItemsView
- namespace Aprillz.MewUI