Table of Contents

Method Assign

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

Assign(Graphics, Font?, RectD?, int, DrawItemState)

Assigns the drawing context with the specified graphics, font, drawing bounds, item index, and item state.

public void Assign(Graphics graphics, Font? font = null, RectD? rect = null, int index = 0, DrawItemState state = DrawItemState.None)

Parameters

graphics Graphics

The graphics surface on which drawing operations will be performed. Cannot be null.

font Font

The font to use for text rendering. If null, the default control font is used.

rect RectD?

The bounding rectangle that defines the area for drawing. If null, an empty rectangle is used.

index int

The zero-based index of the item to be drawn.

state DrawItemState

The state flags that describe the visual state of the item being drawn.