ContextMenuService.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 屬性的物件。

傳回

Boolean

IsEnabled 屬性的值。

屬性

適用於