ClassBracketFoldingTagger
Tagger class responsible for creating collapsible (folding) regions in code document. Collapsible section is defined with opening and closing bracket symbols.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Taggers
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class BracketFoldingTagger : FoldingTaggerBase, ITagger<FoldingRegionTag>
Inheritance: objectTaggerBase<FoldingRegionTag>FoldingTaggerBaseBracketFoldingTagger
Derived Classes:
Implements:
Inherited Members
Constructors
BracketFoldingTagger(ITextDocumentEditor)
Initializes a new instance of the BracketFoldingTagger class.
Declaration
public BracketFoldingTagger(ITextDocumentEditor editor)
Parameters
editor
The editor.
Properties
ClosingBracket
Gets or sets the closing section symbol.
OpeningBracket
Gets or sets the opening section symbol.
Methods
BuildBracketFoldings(string)
Rebuilds the bracket folding sections.
Declaration
protected virtual void BuildBracketFoldings(string inputValue)
Parameters
inputValue
GetFoldingRegionTitle(string, Span, string)
Gets the text displayed in the collapsed folding section.
Declaration
protected override string GetFoldingRegionTitle(string inputValue, Span span, string startText)
Parameters
inputValue
The document string.
span
The span defining the folded region.
startText
The start text of the collapsible (folding) section.
Returns
The region title.
Overrides
GetFoldingRegionToolTipContent(Span)
Gets the folding region's tooltip content.
RebuildFoldingRegions()
Rebuilds the list of all collapsible (folding) regions.
Declaration
protected override void RebuildFoldingRegions()
Overrides