共用方式為


SmartTag Class

Definition

Caution

This API is deprecated in this version of the Visual Studio SDK, and will be retired in a future version. To find out more about the replacement API, Light Bulb, refer to http://go.microsoft.com/fwlink/?LinkId=394601.

A tag used to contain actions that may be performed on a span of text as part of a smart tag session.

public ref class SmartTag : Microsoft::VisualStudio::Text::Tagging::ITag
[Windows::Foundation::Metadata::WebHostHidden]
class SmartTag : Microsoft::VisualStudio::Text::Tagging::ITag
[System.Obsolete("This API is deprecated in this version of the Visual Studio SDK, and will be retired in a future version. To find out more about the replacement API, Light Bulb, refer to http://go.microsoft.com/fwlink/?LinkId=394601.")]
public class SmartTag : Microsoft.VisualStudio.Text.Tagging.ITag
[<System.Obsolete("This API is deprecated in this version of the Visual Studio SDK, and will be retired in a future version. To find out more about the replacement API, Light Bulb, refer to http://go.microsoft.com/fwlink/?LinkId=394601.")>]
type SmartTag = class
    interface ITag
Public Class SmartTag
Implements ITag
Inheritance
SmartTag
Attributes
Implements

Examples

For an example of how to use this class, see Walkthrough: Displaying SmartTags.

Remarks

This tag is consumed by the IntelliSense infrastructure and starts smart tag IntelliSense sessions.

Constructors

SmartTag(SmartTagType, ReadOnlyCollection<SmartTagActionSet>)

Initializes a new instance of SmartTag.

Properties

ActionSets

The set of actions that should be a part of the smart tag session.

SmartTagType

The type of smart tag session that should be created.

Applies to