ClassTextSearchHighlightTagger
Class TextSearchHighlightTagger which prepares collection of TextHighlightTags for all occurrences of a given search word.
Definition
Namespace:Telerik.Windows.Controls.SyntaxEditor.Tagging.Taggers
Assembly:Telerik.Windows.Controls.SyntaxEditor.dll
Syntax:
public class TextSearchHighlightTagger : TaggerBase<TextHighlightTag>, ITagger<TextHighlightTag>
Inheritance: objectTaggerBase<TextHighlightTag>TextSearchHighlightTagger
Implements:
Inherited Members
Constructors
TextSearchHighlightTagger(ITextDocumentEditor, ITextFormatDefinitionKey)
Initializes a new instance of the TextSearchHighlightTagger class.
Declaration
public TextSearchHighlightTagger(ITextDocumentEditor editor, ITextFormatDefinitionKey formatDefinitionKey)
Parameters
editor
formatDefinitionKey
Fields
SearchFormatDefinition
The search format definition.
Declaration
public static readonly ITextFormatDefinitionKey SearchFormatDefinition
Field Value
SelectedWordFormatDefinition
The selected word format definition.
Declaration
public static readonly ITextFormatDefinitionKey SelectedWordFormatDefinition
Field Value
Properties
Comparison
Gets or sets the search comparison type.
Declaration
public StringComparison Comparison { 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
UpdateSearchWord(string)
Updates the search word.
Declaration
public void UpdateSearchWord(string newSearchWord)
Parameters
newSearchWord
The search word.