Class JavaScriptFoldingTagger
Tagger class responsible for creating collapsible (folding) regions in JavaScript code document.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls.SyntaxEditor.Taggers
Assembly: Telerik.Windows.Controls.SyntaxEditor.dll
Syntax
public class JavaScriptFoldingTagger : BracketFoldingTagger, ITagger<FoldingRegionTag>
Constructors
JavaScriptFoldingTagger(ITextDocumentEditor)
Initializes a new instance of the Java
Declaration
public JavaScriptFoldingTagger(ITextDocumentEditor editor)
Parameters
IText The syntax editor. |
Methods
BuildCommentsSectionFoldedRegions()
Builds the multiline comment folding regions.
Declaration
protected virtual void BuildCommentsSectionFoldedRegions()
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
System. The document string. |
Span
span
The span defining the folded region. |
System. The start text of the collapsible (folding) section. |
Returns
System. The region title. |
Overrides
RebuildFoldingRegions()
Rebuilds the list of all collapsible (folding) regions.
Declaration
protected override void RebuildFoldingRegions()