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
'Declaración
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
- span
Type: Microsoft.VisualStudio.Text.ITrackingSpan
The range of text for which the tooltip is relevant.
- toolTipContent
Type: System.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
- 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.