ISmartTagBroker.CreateSmartTagSession Method
Creates a smart tag session for smart tags of the specified type at the specified location.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
'Declaration
Function CreateSmartTagSession ( _
textView As ITextView, _
type As SmartTagType, _
triggerPoint As ITrackingPoint, _
state As SmartTagState _
) As ISmartTagSession
ISmartTagSession CreateSmartTagSession(
ITextView textView,
SmartTagType type,
ITrackingPoint triggerPoint,
SmartTagState state
)
ISmartTagSession^ CreateSmartTagSession(
ITextView^ textView,
SmartTagType type,
ITrackingPoint^ triggerPoint,
SmartTagState state
)
abstract CreateSmartTagSession :
textView:ITextView *
type:SmartTagType *
triggerPoint:ITrackingPoint *
state:SmartTagState -> ISmartTagSession
function CreateSmartTagSession(
textView : ITextView,
type : SmartTagType,
triggerPoint : ITrackingPoint,
state : SmartTagState
) : ISmartTagSession
Parameters
textView
Type: Microsoft.VisualStudio.Text.Editor.ITextViewThe ITextView over which to create a smart tag session.
type
Type: Microsoft.VisualStudio.Language.Intellisense.SmartTagTypeThe type of smart tag that should be created.
triggerPoint
Type: Microsoft.VisualStudio.Text.ITrackingPointThe location in the buffer where the smart tag session should be created.
state
Type: Microsoft.VisualStudio.Language.Intellisense.SmartTagStateThe initial state of the smart tag session.
Return Value
Type: Microsoft.VisualStudio.Language.Intellisense.ISmartTagSession
A valid smart tag session.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.