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, _
    style As PopupStyles _
)
void ShowToolTip(
    ITrackingSpan span,
    Object toolTipContent,
    PopupStyles style
)
void ShowToolTip(
    ITrackingSpan^ span, 
    Object^ toolTipContent, 
    PopupStyles style
)
abstract ShowToolTip : 
        span:ITrackingSpan * 
        toolTipContent:Object * 
        style:PopupStyles -> unit
function ShowToolTip(
    span : ITrackingSpan, 
    toolTipContent : Object, 
    style : PopupStyles
)
Parameters
span
Type: Microsoft.VisualStudio.Text.ITrackingSpanThe range of text for which the tooltip is relevant.
toolTipContent
Type: ObjectThe content to be displayed in the tooltip. This must be a string or UIElement to be used by the WPF tooltip adornment surface.
style
Type: Microsoft.VisualStudio.Text.Adornments.PopupStylesPopupStyles for the tooltip.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.