KeyTipService.SetKeyTip(DependencyObject, String) 方法

定義

設定指定元素附加屬性的值 KeyTip

public:
 static void SetKeyTip(System::Windows::DependencyObject ^ element, System::String ^ value);
public static void SetKeyTip(System.Windows.DependencyObject element, string value);
static member SetKeyTip : System.Windows.DependencyObject * string -> unit
Public Shared Sub SetKeyTip (element As DependencyObject, value As String)

參數

element
DependencyObject

附加屬性所寫的物件。

value
String

要設定的值。

例外狀況

指定的 elementnull

適用於