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

傳回

布林值,如果 IsSelected 屬性為 true,則為 true

屬性

適用於