Table of Contents

Method OnCustomDraw

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

OnCustomDraw(Rectangle, DrawStage, DrawState, IDrawInfo)

Raises an CustomDraw event.

public virtual 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.