Microsoft.VisualStudio.Text.Tagging Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tagging is a way of adding markers to spans of text in the editor.
Classes
BatchedTagsChangedEventArgs |
Provides a list of all mapping spans where tags have changed since the last BatchedTagsChanged event. The BatchedTagsChanged event is raised on the same thread as the thread that created the tag aggregator. |
BlockTag |
An implementation of IBlockTag. |
BracePairTag |
An implementation of IBracePairTag |
ClassificationTag |
An implementation of IClassificationTag. |
ErrorTag |
An implementation of IErrorTag. |
MappingTagSpan<T> |
The implementation of IMappingTagSpan<T>. |
OutliningRegionTag |
Represents a tag for outlining regions. |
OverviewMarkTag |
An implementation of IOverviewMarkTag. |
SimpleTagger<T> |
Provides simple, thread-safe storage of and interaction with tags of the given type. |
SpaceNegotiatingAdornmentTag |
Represents a tag for a space-negotiating adornment. The tag is used to provide space for positioning the adornment in a view. |
StructureTag |
An implementation of IStructureTag2. |
TagsChangedEventArgs |
Provides information about the ITagAggregator<T>.TagsChanged event. |
TagSpan<T> |
The implementation of ITagSpan<T>. |
TagTypeAttribute |
Declares the types of tags an ITagger<T> produces. This attribute is placed on the provider of the tagger. |
TextMarkerTag |
Represents the text marker tag, which is used to place text marker adornments on a view. |
TrackingTagSpan<T> |
Associates an ITag with a given ITrackingSpan. This is used by SimpleTagger to provide buffer-level tracking and caching of tag spans. |
UrlTag |
An implementation of IUrlTag. |
Structs
SubHeadingStructureData |
Define the subHeadingStructureData which provide below information: Get the whole span of this code block. Gets the span of the statement that controls the structural block. Determines the semantic type of the structural block. |
Interfaces
IAccurateTagAggregator<T> |
Aggregates all the tag providers in a buffer graph for the specified type of tag. |
IAccurateTagger<T> |
A provider of tags over a buffer. |
IBlockTag |
Represents a structural code block, which is used for vertical structural line adornments. |
IBracePairTag |
An ITag that denotes the location of a brace pair |
IBufferTagAggregatorFactoryService |
A factory that creates an ITagAggregator<T> for an ITextBuffer. |
IClassificationTag |
A tag that represents a classification type. |
IContainerStructureTag |
Extends IStructureTag with SubHeadings property improving structure visualization support for secondary structure elements such as C# "else" statement, also support for the "catch" and "case"statement. |
IEndOfLineAdornmentTag |
Used to indicate the rectangle covered by an adornment (allowing participating adornments to adjust themselves if needed). |
IErrorTag |
Represents an error, which is used to place squiggle adornments on the view. |
IMappingTagSpan<T> |
Associates an ITag with a specified IMappingSpan. |
IOutliningRegionTag |
Provides a tag for outlining regions. |
IOverviewMarkTag |
Provides the information needed to render a mark in the overview margin. |
IStructureTag |
Represents a structural code block, which is used for vertical structural line adornments and outlining collapse regions. |
IStructureTag2 |
Extends IStructureTag with PrimaryHeaderSpan property improving structure visualization support for secondary structure elements such as C# "else" statement. |
ITag |
The base interface of all tags. |
ITagAggregator<T> |
Aggregates all the tag providers in a buffer graph for the specified type of tag. |
ITagger<T> |
A provider of tags over a buffer. |
ITaggerProvider |
Creates an ITagger<T> for a given buffer. |
ITagSpan<T> |
Associates an ITag with a given SnapshotSpan. |
ITextMarkerTag |
Represents the text marker tag, which is used to place text marker adornments on a view. |
IUrlTag |
A tag that represents a URL. |
IViewTagAggregatorFactoryService |
A service that creates an ITagAggregator<T> for an ITextView. This is a MEF component part, and should be imported as follows: [Import] IViewLevelTagAggregatorFactoryService factory = null; |
IViewTaggerProvider |
Creates an ITagger<T> for a given buffer. |
Enums
TagAggregatorOptions |
Tag Aggregator options. |
TagAggregatorOptions2 |
Tag Aggregator options. |
Remarks
For more information about tagging, see the "Tags and Classifiers" section of Inside the Editor. For information about extending and adding tags, see the "Extending Tags" section of Language Service and Editor Extension Points.