IToolTipProvider.ShowToolTip Method (ITrackingSpan, Object)

Creates and displays a tooltip.

Namespace:  Microsoft.VisualStudio.Text.Adornments
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Sub ShowToolTip ( _
    span As ITrackingSpan, _
    toolTipContent As Object _
)
void ShowToolTip(
    ITrackingSpan span,
    Object toolTipContent
)
void ShowToolTip(
    ITrackingSpan^ span, 
    Object^ toolTipContent
)
abstract ShowToolTip : 
        span:ITrackingSpan * 
        toolTipContent:Object -> unit
function ShowToolTip(
    span : ITrackingSpan, 
    toolTipContent : Object
)

Parameters

  • toolTipContent
    Type: Object

    The content to be displayed in the tooltip. This must be a string or UIElement for the WPF tooltip adornment surface.

Remarks

This is equivalent to ShowToolTip with None.

.NET Framework Security

See Also

Reference

IToolTipProvider Interface

ShowToolTip Overload

Microsoft.VisualStudio.Text.Adornments Namespace