IVsCodeWindow.SetViewClassID(Guid) Method

Definition

Sets the text view class to change or query.

C++
public:
 int SetViewClassID(Guid % clsidView);

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:

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

Applies to

Produkt Versiounen
Visual Studio SDK 2015, 2017, 2019, 2022