Partilhar via


IVsMultiViewDocumentView.ActivateLogicalView(Guid) Method

Definition

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

public:
 int ActivateLogicalView(Guid % rguidLogicalView);
public int ActivateLogicalView (ref Guid rguidLogicalView);
abstract member ActivateLogicalView : Guid -> int
Public Function ActivateLogicalView (ByRef rguidLogicalView As Guid) As Integer

Parameters

rguidLogicalView
Guid

[in] GUID identifying the logical view.

Returns

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.

Applies to