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

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

戻り値

Boolean

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

属性

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

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

適用対象

こちらもご覧ください