SmartTag Class

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Language.Intellisense.SmartTag

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

声明
Public Class SmartTag _
    Implements ITag
public class SmartTag : ITag
public ref class SmartTag : ITag
type SmartTag =  
    class
        interface ITag
    end
public class SmartTag implements ITag

The SmartTag type exposes the following members.

Constructors

  Name Description
Public method SmartTag Initializes a new instance of SmartTag.

Top

Properties

  Name Description
Public property ActionSets The set of actions that should be a part of the smart tag session.
Public property SmartTagType The type of smart tag session that should be created.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

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

Examples

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Language.Intellisense Namespace