Partager via


IVsTextTipWindow Interface

Provides a tip when the mouse pauses over a particular context stream in the core editor.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Déclaration
<InterfaceTypeAttribute()> _
<GuidAttribute("A6ACCB2F-1E0D-458B-A878-D40EB89C1DF4")> _
Public Interface IVsTextTipWindow _
    Inherits IVsTipWindow
[InterfaceTypeAttribute()]
[GuidAttribute("A6ACCB2F-1E0D-458B-A878-D40EB89C1DF4")]
public interface IVsTextTipWindow : IVsTipWindow
[InterfaceTypeAttribute()]
[GuidAttribute(L"A6ACCB2F-1E0D-458B-A878-D40EB89C1DF4")]
public interface class IVsTextTipWindow : IVsTipWindow
[<InterfaceTypeAttribute()>]
[<GuidAttribute("A6ACCB2F-1E0D-458B-A878-D40EB89C1DF4")>]
type IVsTextTipWindow =  
    interface
        interface IVsTipWindow
    end
public interface IVsTextTipWindow extends IVsTipWindow

The IVsTextTipWindow type exposes the following members.

Methods

  Name Description
Public method Dismiss() Dismisses the tip window.
Public method Dismiss() Closes the ToolTip window. (Inherited from IVsTipWindow.)
Public method GetContextStream(Int32%, Int32%) Returns the context stream.
Public method GetContextStream(Int32%, Int32%) Returns the position of the text the ToolTip should not obscure and over which the cursor can be held before the ToolTip is closed. (Inherited from IVsTipWindow.)
Public method GetSizePreferences(array<RECT[], array<TIPSIZEDATA[]) Gets the size preferences for the tip window.
Public method GetSizePreferences(array<RECT[], array<TIPSIZEDATA[]) Gets the size preferences for the ToolTip window. (Inherited from IVsTipWindow.)
Public method Paint(IntPtr, array<RECT[]) Paints the tip window.
Public method Paint(IntPtr, array<RECT[]) Paints the ToolTip window. (Inherited from IVsTipWindow.)
Public method SetTextTipData Sets the text tip.
Public method WndProc(IntPtr, UInt32, IntPtr, IntPtr) Method information is not provided.
Public method WndProc(IntPtr, UInt32, IntPtr, IntPtr) Event handler for the tip window. (Inherited from IVsTipWindow.)

Top

Remarks

Implement this interface on your language service object to provide generic tips based on what the user is typing in the core editor. To intercept user characters, your language service object must also implement IOleCommandTarget. To pass the text view a pointer to your IOleCommandTarget implementation, call AddCommandFilter. The command filter intercepts commands that the user types into the code window. Monitor the command information to know when to display tip information to the user.

To provide method tips, your language service must call SetMethodData and implement IVsMethodData.

Notes for Implementers

Implement this interface on your language service object to provide a tip when the mouse pauses over a particular context stream in the core editor.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace