Class
TaggersRegistry

Represents a registry for all taggers.

Definition

Namespace:Telerik.Windows.SyntaxEditor.Core.Tagging

Assembly:Telerik.Windows.SyntaxEditor.Core.dll

Syntax:

cs-api-definition
public class TaggersRegistry

Inheritance: objectTaggersRegistry

Constructors

TaggersRegistry(ITextDocumentEditor)

Initializes a new instance of the TaggersRegistry class.

Declaration

cs-api-definition
public TaggersRegistry(ITextDocumentEditor editor)

Parameters

editor

ITextDocumentEditor

Methods

GetTagger<T>()

Gets a tag aggregator containing a collection of taggers for a particular tag type.

Declaration

cs-api-definition
public ITagger<T> GetTagger<T>() where T : ITag

Returns

ITagger<T>

GetTaggers<T>()

Returns a collection of all taggers which can handle a particular tag.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public ISet<ITagger<T>> GetTaggers<T>() where T : ITag

Returns

ISet<ITagger<T>>

IsTaggerRegistered<T>(ITagger<T>)

Gets a value indicating whether the tagger is already registered.

Declaration

cs-api-definition
public bool IsTaggerRegistered<T>(ITagger<T> tagger) where T : ITag

Parameters

tagger

ITagger<T>

Returns

bool

RegisterTagger<T>(ITagger<T>)

Registers a tagger instance.

Declaration

cs-api-definition
public void RegisterTagger<T>(ITagger<T> tagger) where T : ITag

Parameters

tagger

ITagger<T>

UnregisterTagger<T>(ITagger<T>)

Unregisters a tagger instance.

Declaration

cs-api-definition
public void UnregisterTagger<T>(ITagger<T> tagger) where T : ITag

Parameters

tagger

ITagger<T>