DataGridCheckBoxColumn.IsThreeState 屬性

定義

取得或設定值,這個值表示裝載的 CheckBox 控制項是支援兩個還是三種狀態。

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

屬性值

Boolean

如果裝載的控制項支援三種狀態則為 true,如果支援兩種狀態則為 false。 預設為 false

備註

屬性 DataGridCheckBoxColumn.IsThreeState 可讓您使用可為 Null 的布林值做為資料類型,而且的功能與 ToggleButton.IsThreeState 上的 CheckBox 屬性相同。

控制項屬性的三種狀態 ToggleButton.IsCheckedtruefalsenullCheckBox

適用於

另請參閱