共用方式為


IPeekResultPresentation.Create(IPeekSession, IPeekResultScrollState) Method

Definition

Creates WPF visual representation of the Peek result.

public:
 System::Windows::UIElement ^ Create(Microsoft::VisualStudio::Language::Intellisense::IPeekSession ^ session, Microsoft::VisualStudio::Language::Intellisense::IPeekResultScrollState ^ scrollState);
public System.Windows.UIElement Create (Microsoft.VisualStudio.Language.Intellisense.IPeekSession session, Microsoft.VisualStudio.Language.Intellisense.IPeekResultScrollState scrollState);
abstract member Create : Microsoft.VisualStudio.Language.Intellisense.IPeekSession * Microsoft.VisualStudio.Language.Intellisense.IPeekResultScrollState -> System.Windows.UIElement
Public Function Create (session As IPeekSession, scrollState As IPeekResultScrollState) As UIElement

Parameters

session
IPeekSession

The IPeekSession containing the Peek result.

scrollState
IPeekResultScrollState

The state that defines the desired scroll state of the result. May be null (in which case the default scroll state is used).

Returns

A valid UIElement representing the Peek result.

Remarks

An IPeekResultPresentation for an IDocumentPeekResult would for example open document and return a WPF control of the IWpfTextViewHost.

Applies to