IVsCodeWindow::SetViewClassID Method (Guid)

 

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(
	[InAttribute] 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.

From textmgr.idl:

HRESULT IVsCodeWindow::SetViewClassID(
   [in] REFCLSID clsidView
);
Return to top
Show: