We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

SmartTag Class

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


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

public class SmartTag : ITag

The SmartTag type exposes the following members.

Public methodSmartTagInitializes a new instance of SmartTag.

Public propertyActionSetsThe set of actions that should be a part of the smart tag session.
Public propertySmartTagTypeThe type of smart tag session that should be created.

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 methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

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

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