-
Notifications
You must be signed in to change notification settings - Fork 3
ISelectableCollectionSource(T)
JaykeBird edited this page Feb 21, 2023
·
4 revisions
Back to home | Back to Reference | View raw text
Defines a generic interface for a collection where items within it can be selected.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi
SolidShineUi.ISelectableCollectionSource_1[[ISelectableCollectionSource< T >]]
class SolidShineUi.ISelectableCollectionSource_1 interfaceStyle;
end
Type | Name | Methods |
---|---|---|
bool |
CanSelectMultiple Get or set if multiple items can be selected in this collection. |
get, set |
ReadOnlyCollection <T > |
SelectedItems Get a list of currently selected items. |
get |
Returns | Name |
---|---|
void |
AddToSelection (T item) |
void |
ClearSelection ()Clear the list of selected items. No items will be selected. |
void |
Deselect (T item) |
bool |
IsSelected (T item) |
void |
Select (T item) |
void |
SelectAll ()Select all items in the collection. |
void |
SelectRange (IEnumerable <T > items) |
Defines a generic interface for a collection where items within it can be selected.
Type | Description | Constraints |
---|---|---|
T |
The type of items in the collection. |
public void AddToSelection(T item)
Type | Name | Description |
---|---|---|
T |
item |
public void Select(T item)
Type | Name | Description |
---|---|---|
T |
item |
public void Deselect(T item)
Type | Name | Description |
---|---|---|
T |
item |
public void SelectAll()
Select all items in the collection.
public void ClearSelection()
Clear the list of selected items. No items will be selected.
public bool IsSelected(T item)
Type | Name | Description |
---|---|---|
T |
item |
public void SelectRange(IEnumerable<T> items)
Type | Name | Description |
---|---|---|
IEnumerable <T > |
items |
public ReadOnlyCollection<T> SelectedItems { get; }
Get a list of currently selected items.
public bool CanSelectMultiple { get; set; }
Get or set if multiple items can be selected in this collection.
Some implementers may not allow this value to be changed via a setter; if so, a NotSupportedException will be thrown.
public event SelectionChangedEventHandler SelectionChanged
Raised when the selection is changed, including additions and removals.
Generated with ModularDoc