Table of Contents

Method OnCustomDraw

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

OnCustomDraw(Rectangle, DrawStage, DrawState, IDrawInfo)

When implemented by a class, raises an CustomDraw event.

bool OnCustomDraw(Rectangle rect, DrawStage stage, DrawState state, IDrawInfo info)

Parameters

rect Rectangle

Rectangular area of control to draw.

stage DrawStage

Specifies whether this method called before or after painting.

state DrawState

Specifies part of control to draw.

info IDrawInfo

Full information about drawing text fragment.

Returns

bool

True if user handles this event; otherwise false.