Share via


KeyTipService.GetKeyTip Method

Returns the value of the KeyTip attached property for the specified element.

Namespace:  Microsoft.Windows.Controls
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Shared Function GetKeyTip ( _
    element As DependencyObject _
) As String
public static string GetKeyTip(
    DependencyObject element
)
public:
static String^ GetKeyTip(
    DependencyObject^ element
)
static member GetKeyTip : 
        element:DependencyObject -> string 
public static function GetKeyTip(
    element : DependencyObject
) : String

Parameters

Return Value

Type: System.String
The object’s KeyTip property value.

Exceptions

Exception Condition
ArgumentNullException

The specified element is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

KeyTipService Class

Microsoft.Windows.Controls Namespace