Table of Contents

Class EnumerableTableSource<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ITableSource implementation that wraps arbitrary data.

public class EnumerableTableSource<T> : IEnumerableTableSource<T>, ITableSource

Type Parameters

T
Inheritance
EnumerableTableSource<T>
Implements
Inherited Members

Constructors

EnumerableTableSource(IEnumerable<T>, Dictionary<string, Func<T, object>>)

Creates a new instance of the class that presents data collection as a table.

Properties

ColumnNames

Gets the label for each column.

Columns

Gets the number of columns in the table.

Data

Gets the object collection hosted by this wrapper.

this[int, int]

Returns the data at the given indexes of the table (row, column).

Rows

Gets the number of rows in the table.

Methods

GetAllObjects()

Return all objects in the table.

GetObjectOnRow(int)

Return the object on the given row.