ToolTipService.SetIsEnabled(DependencyObject, Boolean) ToolTipService.SetIsEnabled(DependencyObject, Boolean) ToolTipService.SetIsEnabled(DependencyObject, Boolean) ToolTipService.SetIsEnabled(DependencyObject, Boolean) Method

定義

オブジェクトに対する IsEnabled 添付プロパティの値を設定します。Sets the value of the IsEnabled attached property for an object.

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

パラメーター

element
DependencyObject DependencyObject DependencyObject DependencyObject

添付プロパティの書き込み対象のオブジェクト。The object to which the attached property is written.

value
Boolean Boolean Boolean Boolean

設定する値。The value to set.

ToolTipService.IsEnabled添付プロパティの値を設定する方法を次の例に示します。The following example shows how to set the value for the ToolTipService.IsEnabled attached property.

ToolTipService.SetIsEnabled(ellipse2, true);
ToolTipService.SetIsEnabled(ellipse2, True)

適用対象

こちらもご覧ください