New to Telerik UI for WPF? Start a free 30-day trial

Represents the base class for taggers that operate on a specific type of data.

Definition

Namespace:Telerik.Windows.Documents.Model.Code

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Type Parameters:

T

Syntax:

C#
public abstract class TaggerBase<T> : ITagger<T> where T : ClassificationTag

Inheritance: objectTaggerBase<T>

Derived Classes: RegexTagger

Implements: ITagger<T>

Constructors

C#
public TaggerBase()

Properties

Represents the document associated with the tagger, providing access to the document's content and structure.

C#
public RadDocument Document { get; }

Represents the editor component of the TaggerBase class, which is responsible for handling various editing operations.

C#
public IDocumentEditor Editor { get; protected set; }

Methods

Retrieves the tags associated with the specified document editor.

C#
public abstract IEnumerable<TaggedTextRange<T>> GetTags(IDocumentEditor editor)
Parameters:editorIDocumentEditor

The document editor from which to retrieve the tags.

Returns:

IEnumerable<TaggedTextRange<T>>

A collection of tags associated with the specified document editor.

Implements: ITagger<T>.GetTags(IDocumentEditor)