Click or drag to resize

SelectableFilterCollectionT Class

Collection that can filter/sort the items, and keep a selection of items in the original list.
Inheritance Hierarchy
SystemObject
  Eto.FormsFilterCollectionT
    Eto.FormsSelectableFilterCollectionT

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class SelectableFilterCollection<T> : FilterCollection<T>, 
	ISelectable<T>

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Eto.Forms.SelectableFilterCollection`1"]

The SelectableFilterCollectionT type exposes the following members.

Constructors
  NameDescription
Public methodSelectableFilterCollectionT(ISelectableControlObject)
Initializes a new instance of the SelectableFilterCollectionT class.
Public methodSelectableFilterCollectionT(ISelectableControlObject, IEnumerableT)
Initializes a new instance of the SelectableFilterCollectionT class.
Public methodSelectableFilterCollectionT(ISelectableControlObject, IListT)
Initializes a new instance of the SelectableFilterCollectionT class.
Top
Properties
  NameDescription
Public propertyParent
Gets the parent that this collection is attached to.
Public propertySelectedItems
Gets the selected items.
Public propertySelectedRows
Gets or sets the selected rows in the underlying list.
Top
Methods
  NameDescription
Public methodClear
Clear this collection.
(Overrides FilterCollectionTClear.)
Protected methodOnCollectionChanged
Raises the CollectionChanged event.
(Overrides FilterCollectionTOnCollectionChanged(NotifyCollectionChangedEventArgs).)
Protected methodOnSelectionChanged
Raises the SelectionChanged event.
Protected methodRebuild
Rebuilds the filtered/sorted view of this collection
(Overrides FilterCollectionTRebuild.)
Public methodRemove
Remove the specified item from this collection.
(Overrides FilterCollectionTRemove(T).)
Public methodRemoveAt
Removes the item at the specified index.
(Overrides FilterCollectionTRemoveAt(Int32).)
Public methodSelectAll
Selects all rows in the underlying list.
Public methodSelectRow
Selects the specified row in the underlying list.
Public methodUnselectAll
Unselects all rows.
Public methodUnselectRow
Unselects the specified row in the underlying list.
Top
Events
  NameDescription
Public eventSelectionChanged
Occurs when the selection changes.
Top
Remarks
This collection is useful when you want the selection to act independant of the filter. This class will keep the selected items based on the original list, not based on the filtered view. For example, if you select an item and set the filter that eliminates the item from the view, the SelectedItems will still return the same selected item until it is unselected from the view or from this class directly.
See Also