共用方式為


IVsMethodTipWindow 介面

提供方法提示視窗中項目的語言服務。

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

語法

'宣告
<InterfaceTypeAttribute()> _
<GuidAttribute("794767F6-538A-4CD3-B29E-6C76C79A7C9C")> _
Public Interface IVsMethodTipWindow _
    Inherits IVsTipWindow
[InterfaceTypeAttribute()]
[GuidAttribute("794767F6-538A-4CD3-B29E-6C76C79A7C9C")]
public interface IVsMethodTipWindow : IVsTipWindow
[InterfaceTypeAttribute()]
[GuidAttribute(L"794767F6-538A-4CD3-B29E-6C76C79A7C9C")]
public interface class IVsMethodTipWindow : IVsTipWindow
[<InterfaceTypeAttribute()>]
[<GuidAttribute("794767F6-538A-4CD3-B29E-6C76C79A7C9C")>]
type IVsMethodTipWindow =  
    interface 
        interface IVsTipWindow 
    end
public interface IVsMethodTipWindow extends IVsTipWindow

IVsMethodTipWindow 類型會公開下列成員。

方法

  名稱 描述
公用方法 Dismiss 正在關閉視窗檢視。
公用方法 GetContextStream 傳回的內容資料流。
公用方法 GetSizePreferences 傳回 [提示] 視窗大小偏好設定。
公用方法 Paint 繪製提示視窗。
公用方法 SetMethodData 設定方法在方法的 [提示] 視窗中顯示的資料並釋放前一個方法的資料。
公用方法 WndProc 未提供的方法資訊。不要使用這個方法。

回頁首

備註

呼叫此介面,您的語言服務來提供方法根據使用者輸入核心編輯器] 中的秘訣。 若要攔截使用者的字元,您的語言服務物件也必須實作IOleCommandTarget。 若要將指示傳遞文字檢視,您IOleCommandTarget實作,請打AddCommandFilter。 指令篩選條件會攔截使用者鍵入程式碼] 視窗的命令。 監視知道何時應提示資訊顯示給使用者的命令資訊。

方法的提示視窗提供使用者有關它們的語言建構中的位置的提示。 當使用者輸入的語言服務可以提供提示的關鍵字時,語言服務會建立IVsMethodTipWindow物件和呼叫UpdateTipWindow來通知它有時期來提供一個提示的檢視。 建立IVsMethodTipWindow使用VsLocalCreateInstance ,並指定 coclass CLSID_VsMethodTipWindow。 VsLocalCreateInstance被呼叫的 vsdoc.h 中所定義的函式QueryService的本機登錄和呼叫CreateInstance CLSID_VsMethodTipWindow 為此物件上。

使用IVsTipWindow為使用者提供的泛用的工具提示。

實作的圖例和 (或) 在這個範例中,這個介面的電話,請參閱Figures Language Service

實作者注意事項

實作核心文字編輯器,以提供方法提示視窗。

請參閱

參考

Microsoft.VisualStudio.TextManager.Interop 命名空間