ClassCSharpFoldingTagger
Tagger class responsible for creating collapsible (folding) regions in CSharp code document.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Taggers
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class CSharpFoldingTagger : BracketFoldingTagger, ITagger<FoldingRegionTag>
Inheritance: objectTaggerBase<FoldingRegionTag>FoldingTaggerBaseBracketFoldingTaggerCSharpFoldingTagger
Implements:
Inherited Members
Constructors
CSharpFoldingTagger(ITextDocumentEditor)
Initializes a new instance of the CSharpFoldingTagger class.
Declaration
public CSharpFoldingTagger(ITextDocumentEditor editor)
Parameters
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.
CoerceUsingSectionSpan(Span)
Coerces the default 'usings' folding region's 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
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