Skip to main content
A newer version of this page is available. .

CheckBoxBrick Class

A visual brick containing a check box.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v18.1.Core.dll

Declaration

[BrickExporter(typeof(CheckBoxBrickExporter))]
public class CheckBoxBrick :
    VisualBrick,
    ICheckBoxBrick

The following members accept/return CheckBoxBrick objects:

Remarks

CheckBoxBrick is used to represent Boolean values as check boxes in a document and provides options that define the text color, alignment, font and format settings.

The check box state is defined via the CheckBoxBrick.Checked property. The checked state (Checked) indicates true (True in Visual Basic) and the unchecked state (Unchecked) indicates false (False in Visual Basic).

CheckBoxBrick

Example

This example demonstrates how to create a CheckBoxBrick using the BrickGraphics.DrawCheckBox method.

DrawCheckBox

using DevExpress.XtraPrinting;
// ...

    VisualBrick visBrick;
    BrickGraphics brickGraph = printingSystem1.Graph;

    // Start the report generation.
    printingSystem1.Begin();

    // Create a rectangle.
    RectangleF rect = new RectangleF(new PointF(0, 0), new SizeF(60, 20));

    // Specify a page area.
    brickGraph.Modifier = BrickModifier.Detail;

    // Add a checkbox brick to the report.
    visBrick = brickGraph.DrawCheckBox(rect, BorderSide.All, SystemColors.ControlLight, true);

    // Finish the report generation.
    printingSystem1.End();

    // Preview the report
    printingSystem1.PreviewFormEx.Show();

The following code snippets (auto-collected from DevExpress Examples) contain references to the CheckBoxBrick class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Implements

Inheritance

Object
DevExpress.Printing.Utils.DocumentStoring.StorableObjectBase
See Also