IPeekBroker::CanTriggerPeekSession Method (ITextView^, ITrackingPoint^, String^, Predicate<String^>^)

Visual Studio 2015
 

Determines whether a Peek session can be triggered at the caret position, without actually triggering it. Note that an ability to trigger a Peek session doesn't mean that when triggered the session will necessarily provide results.

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

bool CanTriggerPeekSession(
	ITextView^ textView,
	ITrackingPoint^ triggerPoint,
	String^ relationshipName,
	Predicate<String^>^ isStandaloneFilePredicate
)

Parameters

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

The ITextView over which to check if a Peek session can be triggered.

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

The point in the text buffer at which a Peek session is requested.

relationshipName
Type: System::String^

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

isStandaloneFilePredicate
Type: System::Predicate<String^>^

A predicate used to determine whether given file is a standalone (not part of a project) file.

Return Value

Type: System::Boolean

True if a Peek session can be triggered at the caret position, false otherwise.

Return to top
Show: