Bewerken

Delen via


ContentControl.Checked Property

Definition

Gets or sets the current state (checked/unchecked) for a check box.

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

Property Value

true if the check box is checked; otherwise; false.

Remarks

Read/write. Use this property to get or set the current state for a check box content control. If the control is not a check box, attempts to access the property fail with the run-time error “This property is only available for check box content controls."

Applies to