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