Table of Contents

Constructor ListView

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ListView(IList)

Initializes a new instance of ListView that will display the contents of the object implementing the IList interface, with relative positioning.

public ListView(IList source)

Parameters

source IList

An IList data source, if the elements are strings or ustrings, the string is rendered, otherwise the ToString() method is invoked on the result.

ListView(IListDataSource)

Initializes a new instance of ListView that will display the provided data source, using relative positioning.

public ListView(IListDataSource source)

Parameters

source IListDataSource

IListDataSource object that provides a mechanism to render the data. The number of elements on the collection should not change, if you must change, set the "Source" property to reset the internal settings of the ListView.

ListView()

Initializes a new instance of ListView. Set the Source property to display something.

public ListView()

ListView(Rect, IList)

Initializes a new instance of ListView that will display the contents of the object implementing the IList interface with an absolute position.

public ListView(Rect rect, IList source)

Parameters

rect Rect

Frame for the listview.

source IList

An IList data source, if the elements of the IList are strings or ustrings, the string is rendered, otherwise the ToString() method is invoked on the result.

ListView(Rect, IListDataSource)

Initializes a new instance of ListView with the provided data source and an absolute position

public ListView(Rect rect, IListDataSource source)

Parameters

rect Rect

Frame for the listview.

source IListDataSource

IListDataSource object that provides a mechanism to render the data. The number of elements on the collection should not change, if you must change, set the "Source" property to reset the internal settings of the ListView.