Class SyntaxPaint
Represents properties and methods, used to draw text and graphic primitives.
public class SyntaxPaint : ISyntaxPaint
- Inheritance
-
SyntaxPaint
- Implements
Constructors
- SyntaxPaint(TextEditor)
Initializes a new instance of the
SyntaxPaint
class with specified parameters.
Properties
- FontHeight
Represents height of the current font.
- IsFontMonospace
Get a boolean value indicating whether current font is monospaced.
- Lexer
Gets or sets an object that can make lexical analysis for the control's content.
- LineSpace
Represents additional height added to the height of the font.
Methods
- CharWidth(char, double, out int, bool)
Measures summary character width accordingly to specified conditions.
- CharWidth(char, int)
Measures summary character width accordingly to specified conditions.
- EqualStyles(StringItemInfo, StringItemInfo, bool)
Indicates whether given styles are equal.
- GetBackColor(bool)
Retrieves background color in accordance with specified parameter and editor settings.
- GetFontColor(Color, TextStyle)
Retrieves font color corresponding to given state.
- GetFontStyle(FontStyle, TextStyle)
Retrieves font style corresponding to given state.
- GetForeColor(bool)
Retrieves foreground color in accordance with specified parameter and editor settings.
- 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, double, 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, double, out int, bool)
Measures part of given string.
- MeasureLine(string, StringItemInfo[], int, int, double, out int, bool, bool, bool)
Measures part of given string.
- OnFontFamilyChanged()
Occurs when font changed.
- StrWidth(string)
Measures summary character width accordingly to specified conditions.
- StringWidth(string)
Measures specified string.
- StringWidth(string, int, int)
Measures specified string.
- StringWidth(string, int, int, double, out int, bool)
Measures specified string.