Table of Contents

Class CheckBoxTableSourceWrapperByIndex

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Implementation of CheckBoxTableSourceWrapperBase which records toggled rows by their row number.

public class CheckBoxTableSourceWrapperByIndex : CheckBoxTableSourceWrapperBase, ITableSource
Inheritance
CheckBoxTableSourceWrapperByIndex
Implements
Inherited Members

Constructors

CheckBoxTableSourceWrapperByIndex(TableView, ITableSource)

Creates a new instance of the class presenting the data in toWrap plus an additional checkbox column.

Properties

CheckedRows

Gets the collection of all the checked rows in the WrappingITableSource.

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.