ISmartTagSession Interface
Defines a smart tag session, which encapsulates all the information about a particular invocation of the smart tag system.
Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
[ObsoleteAttribute("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 interface ISmartTagSession : IIntellisenseSession, IPropertyOwner
| Name | Description | |
|---|---|---|
![]() | ActionSets | Gets the collection of actions that this session displays. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | ApplicableToSpan | Gets or sets the span to which this session is applicable in the text buffer. This is used to position any popups that are rendered by smart tag presenters. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | IconSource | Gets or sets an icon that can be used in the display of this session. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | IsDismissed | Determines whether the session is dismissed.(Inherited from IIntellisenseSession.) |
![]() | Presenter | Gets the IIntellisensePresenter that is used to render IntelliSense for this session.(Inherited from IIntellisenseSession.) |
![]() | Properties | (Inherited from IPropertyOwner.) |
![]() | State | Gets or sets the current state of this session. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | TagSpan | The span over which the tag should be rendered. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | TagText | Gets or sets the text to be displayed with the tag. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | TextView | Gets the ITextView in which this IntelliSense session was triggered.(Inherited from IIntellisenseSession.) |
![]() | Type | The type of this smart tag session. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
| Name | Description | |
|---|---|---|
![]() | Collapse() | Reduces the session to a minimized state. If the session has no such state, the session will be dismissed.(Inherited from IIntellisenseSession.) |
![]() | Dismiss() | Dismisses the session, causing the presenter to be destroyed and the session to be removed from the session stack.(Inherited from IIntellisenseSession.) |
![]() | GetTriggerPoint(ITextBuffer) | Gets the ITrackingPoint at which this IntelliSense session was triggered for the specified ITextBuffer.(Inherited from IIntellisenseSession.) |
![]() | GetTriggerPoint(ITextSnapshot) | Gets the SnapshotPoint at which this IntelliSense session was triggered in terms of the specified ITextSnapshot.(Inherited from IIntellisenseSession.) |
![]() | Match() | Determines the best matching item in the session and sets the selection to this item.(Inherited from IIntellisenseSession.) |
![]() | Recalculate() | Recalculates the underlying IntelliSense items pertaining to this session, using the same trigger point.(Inherited from IIntellisenseSession.) |
![]() | Start() | Starts the session.(Inherited from IIntellisenseSession.) |
| Name | Description | |
|---|---|---|
![]() | ApplicableToSpanChanged | Occurs when the ApplicableToSpan property changes. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | Dismissed | Occurs when the session is dismissed.(Inherited from IIntellisenseSession.) |
![]() | IconSourceChanged | Occurs when the session's icon changes. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | PresenterChanged | Occurs when the IntelliSense presenter for this session changes.(Inherited from IIntellisenseSession.) |
![]() | Recalculated | Occurs when the session is recalculated.(Inherited from IIntellisenseSession.) |
![]() | StateChanged | Occurs when the state of this session changes. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
![]() | TagSpanChanged | Occurs when the TagSpan property changes. Smart tags are deprecated in favor of light bulbs. See ILightBulbSession for a replacement. |
For an example of the use of this interface, see Walkthrough: Displaying Light Bulb Suggestions.


