Table of Contents

Method RenderMark

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

RenderMark(ListView, int, int, bool, bool)

Renders the mark indicator for an item. Override to customize mark rendering.

public virtual bool RenderMark(ListView listView, int item, int row, bool isMarked, bool allowsMultiple)

Parameters

listView ListView

The ListView rendering to.

item int

The zero-based index of the item.

row int

The row in the viewport where the item is being rendered.

isMarked bool

Whether the item is currently marked.

allowsMultiple bool

Returns

bool

true if custom rendering was performed; false to use default rendering.

Remarks

The default implementation returns false, causing ListView to use its default mark rendering (checkbox glyphs when markMultiple is true, radio button glyphs when false).

Override and return true to provide custom mark glyphs, positioning, or attributes. When this returns true, you must render marks yourself (if desired) and Render(ListView, bool, int, int, int, int, int) will be called starting at column 0.