DataGridCell.IsSelected 屬性

定義

取得或設定值,這個值表示是否已選取儲存格。Gets or sets a value that indicates whether the cell is selected.

public:
 property bool IsSelected { bool get(); void set(bool value); };
public bool IsSelected { get; set; }
member this.IsSelected : bool with get, set
Public Property IsSelected As Boolean

屬性值

Boolean

如果已選取儲存格則為 true,否則為 falsetrue if the cell is selected; otherwise, false. 已註冊的預設值是 falseThe registered default is false. 如需哪些因素會影響值的詳細資訊,請參閱 DependencyPropertyFor more information about what can influence the value, see DependencyProperty.

備註

SelectedIsSelected 屬性設定為時,就會發生此事件 trueThe Selected event occurs when the IsSelected property is set to true.

UnselectedIsSelected 屬性設定為時,就會發生此事件 falseThe Unselected event occurs when the IsSelected property is set to false.

適用於

另請參閱