PeekSessionCreationOptions Constructor (ITextView^, String^, ITrackingPoint^, Nullable<Double>, Boolean, IPeekResizeListener^, Boolean)

Visual Studio 2015
 

Creates a new instance of PeekSessionCreationOptions that will create a Peek session using the default sizing behavior.

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

public:
PeekSessionCreationOptions(
	ITextView^ textView,
	String^ relationshipName,
	ITrackingPoint^ triggerPoint = null,
	Nullable<double> defaultHeight = null,
	bool allowUserResize = true,
	IPeekResizeListener^ resizeListener = null,
	bool shouldFocusOnLoad = true
)

Parameters

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

The ITextView over which to trigger a Peek session.

relationshipName
Type: System::String^

The name of the requested relationship to be explored by a Peek session.

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

The point in the text buffer at which a Peek session is requested. If set to null, the current carat position is assumed.

defaultHeight
Type: System::Nullable<Double>

allowUserResize
Type: System::Boolean

Specifies whether the Peek control resizers should be enabled.

resizeListener
Type: Microsoft.VisualStudio.Language.Intellisense::IPeekResizeListener^

A callback object that will be notified when the user resizes the Peek control.

shouldFocusOnLoad
Type: System::Boolean

Specifies whether the Peek control should get focus when it is first loaded.

Return to top
Show: