IVsCodeWindow.SetViewClassID 方法

设置文本视图类更改或查询。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function SetViewClassID ( _
    ByRef clsidView As Guid _
) As Integer
int SetViewClassID(
    ref Guid clsidView
)
int SetViewClassID(
    [InAttribute] Guid% clsidView
)
abstract SetViewClassID : 
        clsidView:Guid byref -> int
function SetViewClassID(
    clsidView : Guid
) : int

参数

  • clsidView
    类型:Guid%

    [in] 类别文本视图的标识符更改。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

默认情况下代码窗口中编辑窗格使用 CLSID_IVsTextView。 访问视图类的类标识符,调用 GetViewClassID

COM 签名

从 textmgr.idl:

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

.NET Framework 安全性

请参阅

参考

IVsCodeWindow 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间