共用方式為


VsCodeWindow 介面

允許的程式碼] 視窗的管理。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
<GuidAttribute("8560CECD-DFAC-4F7B-9D2A-E6D9810F3443")> _
Public Interface VsCodeWindow _
    Inherits IVsCodeWindow
[GuidAttribute("8560CECD-DFAC-4F7B-9D2A-E6D9810F3443")]
public interface VsCodeWindow : IVsCodeWindow
[GuidAttribute(L"8560CECD-DFAC-4F7B-9D2A-E6D9810F3443")]
public interface class VsCodeWindow : IVsCodeWindow
[<GuidAttribute("8560CECD-DFAC-4F7B-9D2A-E6D9810F3443")>]
type VsCodeWindow =  
    interface 
        interface IVsCodeWindow 
    end
public interface VsCodeWindow extends IVsCodeWindow

VsCodeWindow 類型會公開下列成員。

方法

  名稱 描述
公用方法 Close 關閉程式碼] 視窗。 (繼承自 IVsCodeWindow)。
公用方法 GetBuffer 傳回程式碼] 視窗中的所有檢視所使用的緩衝區。 (繼承自 IVsCodeWindow)。
公用方法 GetEditorCaption 傳回編輯器可以附加自訂文字編輯器標題。 (繼承自 IVsCodeWindow)。
公用方法 GetLastActiveView 傳回最後一個作用中視窗的檢視程式碼。 (繼承自 IVsCodeWindow)。
公用方法 GetPrimaryView 傳回分割的程式碼] 視窗的頂端 (或主要) 檢視。 (繼承自 IVsCodeWindow)。
公用方法 GetSecondaryView 分隔程式碼視窗的底部 (或次要) 傳回檢視。 (繼承自 IVsCodeWindow)。
公用方法 GetViewClassID 傳回文字的檢視類別,來變更或查詢。 (繼承自 IVsCodeWindow)。
公用方法 SetBaseEditorCaption 將自訂的文字附加至編輯器標題 (繼承自 IVsCodeWindow)。
公用方法 SetBuffer 在 [程式碼] 視窗中設定文字緩衝區的所有檢視。 (繼承自 IVsCodeWindow)。
公用方法 SetViewClassID 設定文字的檢視類別,來變更或查詢。 (繼承自 IVsCodeWindow)。

回頁首

請參閱

參考

Microsoft.VisualStudio.TextManager.Interop 命名空間