IVsCodeWindow.GetPrimaryView Method

Returns the top (or primary) view of a split code window.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int GetPrimaryView(
	out IVsTextView ppView
)

Parameters

ppView
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView

[out] Pointer to IVsTextView interface of the primary text view.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Use this method to get a pointer to the primary view if the editor contains one or two views separated by a splitter. To access the secondary view in a split code window, call GetSecondaryView.

COM Signature

From textmgr.idl:

HRESULT IVsCodeWindow::GetPrimaryView(
   [out] IVsTextView **ppView
);

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft