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