IToolTipProvider.ShowToolTip Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ShowToolTip(ITrackingSpan, Object) |
Creates and displays a tooltip. |
ShowToolTip(ITrackingSpan, Object, PopupStyles) |
Creates and displays a tooltip. |
ShowToolTip(ITrackingSpan, Object)
Creates and displays a tooltip.
public:
void ShowToolTip(Microsoft::VisualStudio::Text::ITrackingSpan ^ span, System::Object ^ toolTipContent);
public:
void ShowToolTip(Microsoft::VisualStudio::Text::ITrackingSpan ^ span, Platform::Object ^ toolTipContent);
void ShowToolTip(Microsoft::VisualStudio::Text::ITrackingSpan const & span, winrt::Windows::Foundation::IInspectable const & toolTipContent);
public void ShowToolTip (Microsoft.VisualStudio.Text.ITrackingSpan span, object toolTipContent);
abstract member ShowToolTip : Microsoft.VisualStudio.Text.ITrackingSpan * obj -> unit
Public Sub ShowToolTip (span As ITrackingSpan, toolTipContent As Object)
Parameters
- span
- ITrackingSpan
The range of text for which the tooltip is relevant.
- toolTipContent
- 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(..., PopupStyles.None).
Applies to
ShowToolTip(ITrackingSpan, Object, PopupStyles)
Creates and displays a tooltip.
public:
void ShowToolTip(Microsoft::VisualStudio::Text::ITrackingSpan ^ span, System::Object ^ toolTipContent, Microsoft::VisualStudio::Text::Adornments::PopupStyles style);
public:
void ShowToolTip(Microsoft::VisualStudio::Text::ITrackingSpan ^ span, Platform::Object ^ toolTipContent, Microsoft::VisualStudio::Text::Adornments::PopupStyles style);
void ShowToolTip(Microsoft::VisualStudio::Text::ITrackingSpan const & span, winrt::Windows::Foundation::IInspectable const & toolTipContent, Microsoft::VisualStudio::Text::Adornments::PopupStyles style);
public void ShowToolTip (Microsoft.VisualStudio.Text.ITrackingSpan span, object toolTipContent, Microsoft.VisualStudio.Text.Adornments.PopupStyles style);
abstract member ShowToolTip : Microsoft.VisualStudio.Text.ITrackingSpan * obj * Microsoft.VisualStudio.Text.Adornments.PopupStyles -> unit
Public Sub ShowToolTip (span As ITrackingSpan, toolTipContent As Object, style As PopupStyles)
Parameters
- span
- ITrackingSpan
The range of text for which the tooltip is relevant.
- toolTipContent
- Object
The content to be displayed in the tooltip. This must be a string or UIElement for the WPF tooltip adornment surface.
- style
- PopupStyles
PopupStyles for the tooltip.