Class Braces
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
Represents properties and methods for handling matching braces within the Edit control.
public class Braces : IEditBraceMatching, IBraceMatching
- Inheritance
-
Braces
- Implements
Constructors
- Braces(ISyntaxEdit)
Initializes a new instance of the
Braces
class with a specified owner.
Properties
- BackColor
Gets or sets a value that represents background color to draw matching braces.
- BracesOptions
Gets or sets options specifying appearance and behaviour of matching braces within Edit control.
- ClosingBraces
Gets or sets an array of characters each one representing a closing brace.
- FontStyle
Gets or sets a FontStyle value that is used to draw matching braces.
- ForeColor
Gets or sets a value that represents foreground color to draw matching braces.
- OpenBraces
Gets or sets an array of characters each one representing an open brace.
- UseRoundRect
Gets or sets a boolean value that indicates whether Edit control should draw rectangle around matching braces.
Methods
- Assign(IEditBraceMatching)
Copies the contents of another
Braces
object.
- FindClosingBrace(ref Point)
Locates matching closing brace.
- FindClosingBrace(ref int, ref int)
Locates matching closing brace.
- FindOpenBrace(ref Point)
Locates matching open brace.
- FindOpenBrace(ref int, ref int)
Locates matching open brace.
- HighlightBraces()
Highlights braces containing caret position. UnhighlightBraces()
- ResetBackColor()
Resets the
BackColor
to its default value.
- ResetBracesOptions()
Resets the
BracesOptions
to its default value.
- ResetClosingBraces()
Resets the
ClosingBraces
to its default value.
- ResetFontStyle()
Resets the
Style
to its default value.
- ResetForeColor()
Resets the
ForeColor
to its default value.
- ResetOpenBraces()
Resets the
OpenBraces
to its default value.
- ResetUseRoundRect()
Resets the
UseRoundRect
to its default value.
- ShouldSerializeBackColor()
Indicates whether the
BackColor
should be persisted.
- ShouldSerializeClosingBraces()
Indicates whether the ClosingBraces property should be persisted.
- ShouldSerializeFontStyle()
Indicates whether the
FontStyle
property should be persisted.
- ShouldSerializeForeColor()
Indicates whether the
ForeColor
should be persisted.
- ShouldSerializeOpenBraces()
Indicates whether the
OpenBraces
should be persisted.
- TempHighlightBraces(Rectangle[])
Temporary highlights all text within the area specified by rects. TempUnhighlightBraces()
- TempUnhighlightBraces()
Cancels text highlighting, turned on by TempHighlightBraces method. TempHighlightBraces(Rectangle[])
- UnhighlightBraces()
Unhighlights braces containing caret position. HighlightBraces()