ILightBulbBroker::CreateSession Method (ISuggestedActionCategorySet^, ITextView^, ITrackingPoint^, ITrackingSpan^, Boolean)

Visual Studio 2015
 

Creates but doesn't expand an ILightBulbSession for a given ITextView with the current caret position as a trigger point.

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

ILightBulbSession^ CreateSession(
	ISuggestedActionCategorySet^ requestedActionCategories,
	ITextView^ textView,
	ITrackingPoint^ triggerPoint,
	ITrackingSpan^ triggerSpan,
	bool trackMouse
)

Parameters

requestedActionCategories
Type: Microsoft.VisualStudio.Language.Intellisense::ISuggestedActionCategorySet^

A set of suggested action categories.

textView
Type: Microsoft.VisualStudio.Text.Editor::ITextView^

The ITextView over which to create an ILightBulbSession.

triggerPoint
Type: Microsoft.VisualStudio.Text::ITrackingPoint^

The ITrackingPoint in the text buffer at which to create an ILightBulbSession.

triggerSpan
Type: Microsoft.VisualStudio.Text::ITrackingSpan^

The ITrackingSpan in the text buffer for which to create an ILightBulbSession.

trackMouse
Type: System::Boolean

Determines whether the session should track the mouse.

Return Value

Type: Microsoft.VisualStudio.Language.Intellisense::ILightBulbSession^

A valid instance of an ILightBulbSession, or null if no ILightBulbSession can be created for a given text view and caret position.

Return to top
Show: