Table of Contents

Method PaintRows

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

PaintRows(Graphics, RectD, float, int?, int?)

Paints the visible rows within the specified rectangle using the provided graphics context, applying an optional width increment to the painting area.

public virtual void PaintRows(Graphics dc, RectD paintRectangle, float widthIncrement, int? fromIndex = null, int? toIndex = null)

Parameters

dc Graphics

The graphics context used to render the rows.

paintRectangle RectD

The rectangle that defines the area in which rows are painted.

widthIncrement float

The additional width, in device units, to add to the painting rectangle before rendering the rows.

fromIndex int?

The optional starting index of the rows to paint. If null, painting starts from the first visible row.

toIndex int?

The optional ending index of the rows to paint. If null, painting ends at the last visible row.

Remarks

This method iterates over all visible rows and paints each one according to the current drawing mode and selection state. If partial row visibility is disabled, only fully visible rows within the specified rectangle are painted. The method updates the list of items that were last painted. Override this method to customize row painting behavior.