Table of Contents

Class ListWrapper<T>

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Provides a default implementation of IListDataSource that renders ListView items using ToString().

public class ListWrapper<T> : IListDataSource, IDisposable

Type Parameters

T
Inheritance
ListWrapper<T>
Implements
Inherited Members

Constructors

ListWrapper(ObservableCollection<T>)

Properties

Count

Returns the number of elements to display

Length

Returns the maximum length of elements to display

SuspendCollectionChangedEvent

Allow suspending the CollectionChanged event from being invoked, if true, otherwise is false.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

IsMarked(int)

Should return whether the specified item is currently marked.

Render(ListView, 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.

StartsWith(string)
ToList()

Return the source as IList.

Events

CollectionChanged

Event to raise when an item is added, removed, or moved, or the entire list is refreshed.