Compartilhar via


TextToolTipService.SetToolTipText Method

Sets the ToolTipText attribute to the specified value for the given element.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Sub SetToolTipText ( _
    element As FrameworkElement, _
    value As String _
)
public static void SetToolTipText(
    FrameworkElement element,
    string value
)
public:
static void SetToolTipText(
    FrameworkElement^ element, 
    String^ value
)
static member SetToolTipText : 
        element:FrameworkElement * 
        value:string -> unit
public static function SetToolTipText(
    element : FrameworkElement, 
    value : String
)

Parameters

  • element
    Type: FrameworkElement

    The element to set the ToolTipText attribute for.

  • value
    Type: String

    The value to set the ToolTipText attribute to.

.NET Framework Security

See Also

Reference

TextToolTipService Class

Microsoft.VisualStudio.PlatformUI Namespace