Table of Contents

Interface IListDataSource

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Implement IListDataSource to provide custom rendering for a ListView.

public interface IListDataSource

Properties

Count

Returns the number of elements to display

Length

Returns the maximum length of elements to display

Methods

IsMarked(int)

Should return whether the specified item is currently marked.

Render(ListView, ConsoleDriver, bool, int, int, int, int, int)

This method is invoked to render a specified item, the method should cover the entire provided width.

SetMark(int, bool)

Flags the item as marked.

ToList()

Return the source as IList.