ILightBulbBroker.TryExpandSession Method

Definition

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.

Applies to