Class SyntaxPaint
Represents properties and methods, used to draw text and graphic primitives.
public class SyntaxPaint : ISyntaxPaint
- Inheritance
-
SyntaxPaint
- Implements
- Derived
Constructors
- SyntaxPaint(IPainter, Control)
Initializes a new instance of the
SyntaxPaint
class with specified parameters.
Properties
- DisableColorPaint
Gets or sets a value indicating whether control uses colors to paint its content.
- DisableSyntaxPaint
Gets or sets a value indicating whether Edit control uses lexical colors/styles to paint its content.
- Lexer
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)
Draws line given by its index at the specified position.
- DrawLine(int, string, StringItemInfo[], Point, Rectangle)
Draws line given by its index at the specified position.
- EqualStyles(StringItemInfo, StringItemInfo, bool)
Indicates whether given styles are equal.
- GetBackColor(Color, TextStyle)
Retrieves background color corresponding to given state.
- GetFontColor(Color, TextStyle)
Retrieves font color corresponding to given state.
- GetFontStyle(FontStyle, TextStyle)
Retrieves font style corresponding to given state.
- GetLexStyle(StringItemInfo, ref TextStyle)
Retrieves lex state corresponding to given parser style.
- MeasureLine(int, int, int)
Measures part of the string given at by its index.
- MeasureLine(int, int, int, int, out int, bool)
Measures part of the string given by its index.
- MeasureLine(string, StringItemInfo[], int, int)
Measures part of given string.
- MeasureLine(string, StringItemInfo[], int, int, int, out int, bool)
Measures part of given string.
- MeasureLine(string, StringItemInfo[], int, int, int, out int, bool, bool, bool)
Measures part of given string.
- OnCustomDraw(Rectangle, DrawStage, DrawState, IDrawInfo)
Raises an
CustomDraw
event.
- PaintLineBookMarks(Rectangle)
Paints collection of line bookmark.
- PaintSyntax(int, int, Point, Rectangle, Point, bool)
Perform syntax painting of the control on the graphic surface.
- ResetDisableColorPaint()
Resets the
DisableColorPaint
to the default value.
- ResetDisableSyntaxPaint()
Resets the
DisableSyntaxPaint
to the default value.
Events
- CustomDraw
Occurs when control draws its content.