Table of Contents

Interface ISyntaxPaint

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

Represents properties and methods, used to draw text and graphic primitives.

public interface ISyntaxPaint

Properties

DisableColorPaint

When implemented by a class, gets or sets a value indicating whether control uses colors to paint its content.

DisableSyntaxPaint

When implemented by a class, gets or sets a value indicating whether Edit control uses lexical colors/styles to paint its content.

Lexer

When implemented by a class, gets or sets an object that can make lexical analysis for the control's content.

Painter

Specifies IPainter object used to draw text and graphic primitives.

Methods

DrawLine(int, Point, Rectangle)

When implemented by a class, draws line given by its index at the specified position.

DrawLine(int, string, StringItemInfo[], Point, Rectangle)

When implemented by a class, draws line given by its index at the specified position.

EqualStyles(StringItemInfo, StringItemInfo, bool)

When implemented by a class, indicates whether given styles are equal.

GetFontColor(Color, TextStyle)

When implemented by a class, retrieves font color corresponding to given state.

GetFontStyle(FontStyle, TextStyle)

When implemented by a class, retrieves font style corresponding to given state.

GetLexStyle(StringItemInfo, ref TextStyle)

When implemented by a class, retrieves lex state corresponding to given parser style.

MeasureLine(int, int, int)

When implemented by a class, measures part of the string given at by its Index.

MeasureLine(int, int, int, int, out int, bool)

When implemented by a class, measures part of the string given by its index.

MeasureLine(string, StringItemInfo[], int, int)

When implemented by a class, measures part of given string.

MeasureLine(string, StringItemInfo[], int, int, int, out int, bool)

When implemented by a class, measures part of given string.

OnCustomDraw(Rectangle, DrawStage, DrawState, IDrawInfo)

When implemented by a class, raises an CustomDraw event.

PaintSyntax(int, int, Point, Rectangle, Point, bool)

When implemented by a class, perform syntax painting of the control on the graphic surface.

ResetDisableColorPaint()

When implemented by a class, resets the DisableColorPaint to the default value.

ResetDisableSyntaxPaint()

When implemented by a class, resets the DisableSyntaxPaint to the default value.

Events

CustomDraw

When implemented by a class, occurs when control draws its content.