SimpleTagger<T> Class

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

System.Object
  Microsoft.VisualStudio.Text.Tagging.SimpleTagger<T>

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

public class SimpleTagger<T> : ITagger<T>
where T : ITag

Type Parameters

T

The type, which must be a subtype of ITag.

The SimpleTagger<T> type exposes the following members.

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

  NameDescription
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 a hash function for a particular type. (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.
Top

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

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

Community Additions

ADD
Show:
© 2014 Microsoft