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

属性

适用于