SimpleTagger<T> Class

Provides simple, thread-safe storage of and interaction with tags of the given type.


Namespace:  Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

generic<typename T>
where T : ITag 
public ref class SimpleTagger : ITagger<T>

Type Parameters


The type, which must be a subtype of ITag.

The SimpleTagger<T> type exposes the following members.

Public methodSimpleTagger<T>Initializes a new instance of SimpleTagger<T> for the specified buffer.

Public methodCreateTagSpanAdds a tag over the given span.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTaggedSpansGets the tagged spans that intersect the given SnapshotSpan.
Public methodGetTagsGets all the tags that overlap the spans in the specified snapshot of the desired type.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodRemoveTagSpanRemoves a tag span that was created by calling CreateTagSpan.
Public methodRemoveTagSpansRemoves all tag spans that match the conditions specified by the predicate.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUpdateGets an IDisposable object that represents an update batch.

Public eventTagsChangedOccurs when one or more tags have been added or removed.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft