Method Assign
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
graphicsGraphicsThe graphics surface on which drawing operations will be performed. Cannot be null.
fontFontThe font to use for text rendering. If null, the default control font is used.
rectRectD?The bounding rectangle that defines the area for drawing. If null, an empty rectangle is used.
indexintThe zero-based index of the item to be drawn.
stateDrawItemStateThe state flags that describe the visual state of the item being drawn.