ILightBulbBroker.TryExpandSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryExpandSession(ISuggestedActionCategorySet, ITextView) |
Tries to create and expand ILightBulbSession for the specified ITextView. If the session already exists, this method expands it. |
TryExpandSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean) |
Tries to create and expand ILightBulbSession for the specified ITextView. |
TryExpandSession(ISuggestedActionCategorySet, ITextView)
Tries to create and expand ILightBulbSession for the specified ITextView. If the session already exists, this method expands it.
public:
bool TryExpandSession(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public bool TryExpandSession (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member TryExpandSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView -> bool
Public Function TryExpandSession (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView) As Boolean
Parameters
- requestedActionCategories
- ISuggestedActionCategorySet
A set of suggested action categories requested.
- textView
- ITextView
The ITextView for which to create and expand an ILightBulbSession.
Returns
true
if ILightBulbSession was successfully created and expanded, false
otherwise.
Applies to
TryExpandSession(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, Boolean)
Tries to create and expand ILightBulbSession for the specified ITextView.
public:
bool TryExpandSession(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, Microsoft::VisualStudio::Text::ITrackingSpan ^ triggerSpan, bool trackMouse);
public bool TryExpandSession (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITrackingPoint triggerPoint, Microsoft.VisualStudio.Text.ITrackingSpan triggerSpan, bool trackMouse);
abstract member TryExpandSession : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * Microsoft.VisualStudio.Text.ITrackingSpan * bool -> bool
Public Function TryExpandSession (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView, triggerPoint As ITrackingPoint, triggerSpan As ITrackingSpan, trackMouse As Boolean) As Boolean
Parameters
- requestedActionCategories
- ISuggestedActionCategorySet
A set of suggested action categories requested.
- textView
- ITextView
The ITextView for which to create and expand an ILightBulbSession.
- triggerPoint
- ITrackingPoint
The ITrackingPoint in the text buffer at which to create an ILightBulbSession.
- triggerSpan
- ITrackingSpan
The ITrackingSpan in the text buffer for which to create an ILightBulbSession.
- trackMouse
- Boolean
Determines whether the session should track the mouse.
Returns
true
if ILightBulbSession was successfully created and expanded, false
otherwise.