Checked: Boolean;
Checked: Boolean;
The Checked property determines state of the control element checkbox.
If the property is set to True, the checkbox is selected, otherwise, it is deselected.
Executing the example requires a form, a button named Button1 on it and the Ribbon component named Ribbon1. A tab and a panel are created on the ribbon of the Ribbon1 component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
RPanel: IRibbonPanel;
RCheck: IRibbonCheckBox;
Begin
RPanel := Ribbon1.ActiveCategory.Panels.Item(0);
RCheck := New RibbonCheckBox.Create;
RPanel.Elements.Add(RCheck);
RCheck.Text := "Auto save";
RCheck.Checked := True;
End Sub Button1OnClick;
Clicking the button creates a checkbox on the ribbon panel. A text is specified for the checkbox, and the checkbox is selected.
See also: