VsCodeWindowClass 类

允许代码窗口的进程。

继承层次结构

Object
  Microsoft.VisualStudio.TextManager.Interop.VsCodeWindowClass

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

语法

声明
<ClassInterfaceAttribute()> _
<GuidAttribute("F5E7E719-1401-11D1-883B-0000F87579D2")> _
Public Class VsCodeWindowClass _
    Implements IVsCodeWindow, VsCodeWindow
[ClassInterfaceAttribute()]
[GuidAttribute("F5E7E719-1401-11D1-883B-0000F87579D2")]
public class VsCodeWindowClass : IVsCodeWindow, 
    VsCodeWindow
[ClassInterfaceAttribute()]
[GuidAttribute(L"F5E7E719-1401-11D1-883B-0000F87579D2")]
public ref class VsCodeWindowClass : IVsCodeWindow, 
    VsCodeWindow
[<ClassInterfaceAttribute()>]
[<GuidAttribute("F5E7E719-1401-11D1-883B-0000F87579D2")>]
type VsCodeWindowClass =  
    class 
        interface IVsCodeWindow 
        interface VsCodeWindow 
    end
public class VsCodeWindowClass implements IVsCodeWindow, VsCodeWindow

VsCodeWindowClass 类型公开以下成员。

构造函数

  名称 说明
公共方法 VsCodeWindowClass

页首

方法

  名称 说明
公共方法 Close 关闭代码窗口。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetBuffer 返回所有视图使用的缓冲区在代码窗口。
公共方法 GetEditorCaption 返回编辑器中追加自定义文本的编辑说明。
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetLastActiveView 返回代码窗口的最后一个活动视图。
公共方法 GetPrimaryView 返回拆分代码窗口的顶部 (或主) 视图。
公共方法 GetSecondaryView 返回拆分代码窗口的底部 (或辅助) 视图。
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetViewClassID 返回文本视图类更改或查询。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 SetBaseEditorCaption 追加自定义文本到编辑说明。
公共方法 SetBuffer 设置所有视图的文本缓冲区在代码窗口。
公共方法 SetViewClassID 设置文本视图类更改或查询。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

备注

您不能使用 new 关键字创建此类的实例。 相反,您必须获取 ILocalRegistry 对象并用 CreateInstance创建对象。 MPF 将使用 CreateInstance的此方法。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.TextManager.Interop 命名空间