Table of Contents

Method PaintRow

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

PaintRow(Graphics, int, ListControlItem?, RectD)

Paints a single row in the list control using the specified drawing parameters.

public virtual void PaintRow(Graphics dc, int rowIndex, ListControlItem? item, RectD rectRow)

Parameters

dc Graphics

The graphics context used to render the row.

rowIndex int

The zero-based index of the row to paint.

item ListControlItem

The item associated with the row to be painted, or null if the row does not correspond to a specific item.

rectRow RectD

The bounding rectangle, in client coordinates, that defines the area of the row to paint.

Remarks

Override this method to customize the appearance of individual rows. The method adapts its painting logic based on the current draw mode and selection state. When overriding, ensure that custom drawing respects the provided drawing context and item state.