ActiveReports 19 .NET Edition
Report Authors / Report Controls / Report Controls in Page/RDLX Report / CheckBox
CheckBox

You can use the CheckBox control to represent a Boolean value in a report. By default, the CheckBox control appears as a small box inside an empty textbox. If the Checked value is set to True, the small box appears with a check mark; if False, the box is empty. By default, the checkbox is empty.

Structure

 CheckBox Structure

Important Properties

Clicking the four-way arrow selects the control and reveals its properties in the Properties panel.

Property Description
Checked Gets or sets a value indicating whether the check box is in the checked state. You can also set the Checked property of the check box in code or bind it to a Boolean database value.
Text Gets or sets the printed caption of the check box. 
CheckAlignment Gets or sets the alignment of the check box text within the control drawing area.
Custom CSS Classes

Allows to apply custom CSS class names to the check box when rendering a report in the JS Report Viewer.

For example, you can use the jsViewer.custom.styles.css file from the JS Report Viewer deliverables to style the check box as a button. When designing a report in the Standalone Designer, set this property to a style class from the jsViewer.custom.styles.css file (e.g., ar-button), then add the report to your JS Viewer project. After you open the report in your JS Viewer project, the class will automatically apply to the check box.

Similarly, you can apply your own custom styles to match the design requirements.

You can double-click the CheckBox control to enter edit mode and enter text directly in the control, or you can enter text in the Properties panel or you can assign data to display in code through the Text property.

In edit mode, using the toolbar you can format text in the CheckBox control using the toolbar or you modify properties in the Properties panel. Formats apply to all of the text in the control. Text formatting changes in the Properties panel immediately appear in the control, and changes made in the toolbar are immediately reflected in the Properties panel.

CheckBox Dialog Properties

You can set the CheckBox properties in the CheckBox dialog. To open it, with the CheckBox selected on the report, under the Properties panel, click the Property dialog link.

Name: Enter a name for the checkbox that is unique within the report. This name is displayed in the Document Outline and in XML exports. You can only use underscore (_) as a special character in the Name field. Other special characters such as period (.), space ( ), forward slash (/), backslash (\), exclamation (!), and hyphen (-) are not supported.

Tooltip: A textual label for the report item used to include TITLE or ALT attributes in HTML reports.

Text : Enter an expression or a static label, or choose a field expression from the drop-down list. You can access the expression editor by selecting <Expression...> in the list. The value of this expression or text is displayed in the report to the right of the checkbox. 

Keyboard Shortcuts

In the edit mode, you can use the following keyboard shortcuts.

Key Combination Action
Enter New line.
Alt + Enter Saves modifications and exits edit mode.
Esc Cancels modifications and exits edit mode.

In Visual Studio Integrated Designer, you can disable this feature in the EditModeEntering Event and EditModeExit Event.

See Also