次の方法で共有


IVsCodeWindow.SetViewClassID(Guid) Method

Definition

Sets the text view class to change or query.

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

Parameters

clsidView
Guid

[in] Class identifier of the text view to change.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The code window by default uses CLSID_IVsTextView for the edit panes. To access the class identifier of the view class, call GetViewClassID.

COM Signature

From textmgr.idl:

HRESULT IVsCodeWindow::SetViewClassID(  
   [in] REFCLSID clsidView  
);  

Applies to