Class CSharpFoldingTagger
Tagger class responsible for creating collapsible (folding) regions in CSharp code document.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Controls.SyntaxEditor.Taggers
Assembly: Telerik.WinControls.SyntaxEditor.dll
Syntax
public class CSharpFoldingTagger : BracketFoldingTagger, ITagger<FoldingRegionTag>
Constructors
CSharpFoldingTagger(ITextDocumentEditor)
Initializes a new instance of the CSharpFoldingTagger class.
Declaration
public CSharpFoldingTagger(ITextDocumentEditor editor)
Parameters
ITextDocumentEditor
editor
The syntax editor. |
Methods
BuildCommentsSectionFoldedRegions()
Builds the multiline comment folding regions.
Declaration
protected virtual void BuildCommentsSectionFoldedRegions()
BuildUsingSectionFoldedRegion()
Builds the 'usings' folding region.
Declaration
protected virtual void BuildUsingSectionFoldedRegion()
BuildUsingSectionToolTipContent(Span)
Gets the 'usings' folding region's tooltip content.
Declaration
protected virtual string BuildUsingSectionToolTipContent(Span usingSpan)
Parameters
Span
usingSpan
Span containing the usings section. |
Returns
System.String
The tooltip content. |
CoerceUsingSectionSpan(Span)
Coerces the default 'usings' folding region's span.
Declaration
protected virtual Span CoerceUsingSectionSpan(Span defaultUsingSpan)
Parameters
Span
defaultUsingSpan
Default 'usings' region span is from the end of the first using word to the end of the line containing the last using word. |
Returns
Span
The coerced span. |
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
GetFoldingRegionToolTipContent(Span)
Gets the folding region's tooltip content.
Declaration
protected override string GetFoldingRegionToolTipContent(Span foldingSpan)
Parameters
Span
foldingSpan
The span starting from the regions' start text and ending after the regions' end text. |
Returns
System.String
The tooltip content. |
Overrides
RebuildFoldingRegions()
Rebuilds the list of all collapsible (folding) regions.
Declaration
protected override void RebuildFoldingRegions()