다음을 통해 공유


ITaggerProvider Interface

Creates an ITagger<T> for a given buffer.

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

Syntax

‘선언
Public Interface ITaggerProvider
public interface ITaggerProvider
public interface class ITaggerProvider
type ITaggerProvider =  interface end
public interface ITaggerProvider

The ITaggerProvider type exposes the following members.

Methods

  Name Description
Public method CreateTagger<T> Creates a tag provider for the specified buffer.

Top

Remarks

This is a MEF component part, and implementers must use the following attributes:

[Export(nameSource=typeof(ITaggerProvider))]

Exports must specify at least one content type attribute and at least one tag type attribute.

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 Editor Extension Points.

Examples

For examples of using this interface, see the following walkthroughs:

Walkthrough: Highlighting Text

Walkthrough: Outlining

Walkthrough: Displaying Matching Braces

Walkthrough: Displaying SmartTags

Walkthrough: Creating a Margin Glyph

See Also

Reference

Microsoft.VisualStudio.Text.Tagging Namespace