ToolTipService.GetIsEnabled(DependencyObject) メソッド

定義

オブジェクトの IsEnabled 添付プロパティの値を取得します。

public:
 static bool GetIsEnabled(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetIsEnabled(System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetIsEnabled : System.Windows.DependencyObject -> bool
Public Shared Function GetIsEnabled (element As DependencyObject) As Boolean

パラメーター

element
DependencyObject

プロパティ値の読み取り元のオブジェクト。

返品

オブジェクトの IsEnabled プロパティ値。

属性

次の例は、 ToolTipService.IsEnabled 添付プロパティの値を取得する方法を示しています。 FindName メソッドは、ellipse2である Ellipse というオブジェクトを検索します。

myBool = ToolTipService.GetIsEnabled(
 (DependencyObject)FindName("ellipse2"));
myBool = ToolTipService.GetIsEnabled(CType(FindName("ellipse2"), DependencyObject))

適用対象

こちらもご覧ください