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 Checked property. The checked state (
) indicates true (True in Visual Basic) and the unchecked state (
) indicates false (False in Visual Basic).


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

C# |
using DevExpress.XtraPrinting;
VisualBrick visBrick;
BrickGraphics brickGraph = printingSystem1.Graph;
printingSystem1.Begin();
RectangleF rect = new RectangleF(new PointF(0, 0), new SizeF(60, 20));
brickGraph.Modifier = BrickModifier.Detail;
visBrick = brickGraph.DrawCheckBox(rect, BorderSide.All, SystemColors.ControlLight, true);
printingSystem1.End();
printingSystem1.PreviewFormEx.Show();
|
VB |
Imports DevExpress.XtraPrinting
Dim visBrick As VisualBrick
Dim brickGraph As BrickGraphics = printingSystem1.Graph
printingSystem1.Begin()
Dim rect As RectangleF = New RectangleF(New PointF(0, 0), New SizeF(60, 20))
brickGraph.Modifier = BrickModifier.Detail
visBrick = brickGraph.DrawCheckBox(rect, BorderSide.All, SystemColors.ControlLight, True)
printingSystem1.End()
printingSystem1.PreviewFormEx.Show()
|
System.Object
DevExpress.Printing.Utils.DocumentStoring.StorableObjectBase
BrickBase
Brick
VisualBrick
CheckBoxBrick