Method OnCustomDraw
OnCustomDraw(Rectangle, DrawStage, DrawState, IDrawInfo)
Raises an CustomDraw event.
public virtual bool OnCustomDraw(Rectangle rect, DrawStage stage, DrawState state, IDrawInfo info)
Parameters
rectRectangleRectangular area of control to draw.
stageDrawStageSpecifies whether this method called before or after painting.
stateDrawStateSpecifies part of control to draw.
infoIDrawInfoFull information about drawing text fragment.
Returns
- bool
True if user handles this event; otherwise false.
OnCustomDraw(RectD, DrawStage, DrawState, IDrawInfo)
public virtual bool OnCustomDraw(RectD rect, DrawStage stage, DrawState state, IDrawInfo info)