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.

bool RenderMark(ListView listView, int item, int row, bool isMarked, bool markMultiple)

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.

markMultiple bool

Whether multiple marking is enabled (checkbox vs radio button style).

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.