Поделиться через


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)

Syntax

'Декларация
Function GetPrimaryView ( _
    <OutAttribute> ByRef ppView As IVsTextView _
) As Integer
'Применение
Dim instance As IVsCodeWindow
Dim ppView As IVsTextView
Dim returnValue As Integer

returnValue = instance.GetPrimaryView(ppView)
int GetPrimaryView(
    out IVsTextView ppView
)
int GetPrimaryView(
    [OutAttribute] IVsTextView^% ppView
)
abstract GetPrimaryView : 
        ppView:IVsTextView byref -> int 
function GetPrimaryView(
    ppView : IVsTextView
) : int

Parameters

Return Value

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

Remarks

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
);

.NET Framework Security

See Also

Reference

IVsCodeWindow Interface

IVsCodeWindow Members

Microsoft.VisualStudio.TextManager.Interop Namespace