XmlFoldingTagger
Tagger class responsible for creating collapsible (folding) regions in XML, XAML and HTML code documents.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Taggers
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class XmlFoldingTagger : FoldingTaggerBase, ITagger<FoldingRegionTag>
Inheritance: objectTaggerBase<FoldingRegionTag>FoldingTaggerBaseXmlFoldingTagger
Implements:
Inherited Members
Constructors
Initializes a new instance of the XmlFoldingTagger class.
public XmlFoldingTagger(ITextDocumentEditor editor)
The syntax editor.
Methods
Prepares patters for matching end of collapsible folding section. Default implementation is to join all end strings of provided collapsible sections. Example for end words End and Finish, pattern is "End|Finish".
protected override string BuildEndRegionBlockPattern(Dictionary<string, string> startToEndMap)
Pairs of start/end collapsible section words.
Returns:The end block pattern.
Overrides:
Prepares patters for matching start of collapsible folding section. Default implementation is to join all start strings of provided collapsible sections. Example for start words Start and Move, pattern is "Start|Move".
protected override string BuildStartRegionBlockPattern(Dictionary<string, string> startToEndMap)
Pairs of start/end collapsible section words.
Returns:The start block pattern.
Overrides:
Coerces the default provided folding span - span starting from the start of the region's start text and ending in the end of the region's end text.
Gets the text displayed in the collapsed folding section.
Rebuilds the list of all collapsible (folding) regions.
protected override void RebuildFoldingRegions()
Overrides: