次の方法で共有


IVsMultiViewDocumentView.ActivateLogicalView Method

Identifies which view is activated when the editor window is instantiated.

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

Syntax

'宣言
Function ActivateLogicalView ( _
    ByRef rguidLogicalView As Guid _
) As Integer
'使用
Dim instance As IVsMultiViewDocumentView
Dim rguidLogicalView As Guid
Dim returnValue As Integer

returnValue = instance.ActivateLogicalView(rguidLogicalView)
int ActivateLogicalView(
    ref Guid rguidLogicalView
)
int ActivateLogicalView(
    [InAttribute] Guid% rguidLogicalView
)
abstract ActivateLogicalView : 
        rguidLogicalView:Guid byref -> int 
function ActivateLogicalView(
    rguidLogicalView : Guid
) : int

Parameters

  • rguidLogicalView
    Type: System.Guid%
    [in] GUID identifying the logical view.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsMultiViewDocumentView::ActivateLogicalView(
   [in] REFGUID rguidLogicalView
);

The value passed into the rguidLogicalView parameter of ActivateLogicalView is the same value passed into the rguidLogicalView of InitializeEditorInstance. Use this value in your editor factory implementation to bring the correct tab (that is, logical view) forward in the view and give it focus.

.NET Framework Security

See Also

Reference

IVsMultiViewDocumentView Interface

IVsMultiViewDocumentView Members

Microsoft.VisualStudio.Shell.Interop Namespace