語言

Selector.GetIsSelected(DependencyObject) 方法

定義

取得所附屬性的值 IsSelected ,該屬性指示項目是否被選取。

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

參數

element
DependencyObject

對該物業的查詢 IsSelected 提出異議。

傳回

布林值, true 若性質 IsSelected 為 true。

屬性

適用於