IVsCodeWindow.SetViewClassID Method

Sets the text view class to change or query.

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

int SetViewClassID(
	ref Guid clsidView
)

Parameters

clsidView
Type: System.Guid

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

Return Value

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

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft