ClassLineHighlightTagger
Class LineHighlightTagger which prepares collection of TextHighlightTags for a collection of lines.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Tagging.Taggers
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class LineHighlightTagger : TaggerBase<TextHighlightTag>, ITagger<TextHighlightTag>
Inheritance: objectTaggerBase<TextHighlightTag>LineHighlightTagger
Implements:
Inherited Members
Constructors
LineHighlightTagger(RadSyntaxEditor, ITextFormatDefinitionKey)
Initializes a new instance of the LineHighlightTagger class.
Declaration
public LineHighlightTagger(RadSyntaxEditor editor, ITextFormatDefinitionKey formatDefinitionKey)
Parameters
editor
formatDefinitionKey
Fields
LineHighlightFormatDefinition
The line highlight format definition.
Declaration
public static readonly ITextFormatDefinitionKey LineHighlightFormatDefinition
Field Value
Properties
HighlightMode
Determines what part of the line will be highlighted by the tagger.
Declaration
public LineHighlightMode HighlightMode { get; set; }
Property Value
Methods
GetTags(NormalizedSnapshotSpanCollection)
Gets a collection of TextHighlightTag tags.
Declaration
public override IEnumerable<TagSpan<TextHighlightTag>> GetTags(NormalizedSnapshotSpanCollection spans)
Parameters
spans
Returns
IEnumerable<TagSpan<TextHighlightTag>>
Overrides
HighlightLines(IEnumerable<int>)
Updates the highlighted lines.
Declaration
public void HighlightLines(IEnumerable<int> lines)
Parameters
lines
The lines to highlight.