Table of Contents

Class CheckBoxTableSourceWrapperByObject<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Implementation of CheckBoxTableSourceWrapperBase which records toggled rows by a property on row objects.

public class CheckBoxTableSourceWrapperByObject<T> : CheckBoxTableSourceWrapperBase, ITableSource

Type Parameters

T
Inheritance
CheckBoxTableSourceWrapperByObject<T>
Implements
Inherited Members

Constructors

CheckBoxTableSourceWrapperByObject(TableView, IEnumerableTableSource<T>, Func<T, bool>, Action<T, bool>)

Creates a new instance of the class wrapping the collection toWrap.

Methods

ClearAllToggles()

Clears the toggled state of all rows.

IsChecked(int)

Returns true if row is checked.

ToggleAllRows()

Called when the 'toggled all' action is performed. This should change state from 'some selected' to 'all selected' or clear selection if all area already selected.

ToggleRow(int)

Flips the checked state of the given row/

ToggleRows(int[])

Flips the checked state for a collection of rows. If some (but not all) are selected they should flip to all selected.