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

CheckBoxBrick(BorderSide, Single, Color, Color) Constructor

Initializes a new instance of the CheckBoxBrick class with the specified visible borders, their width, color, and the background color of a check box brick.

Namespace: DevExpress.XtraPrinting

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

Declaration

public CheckBoxBrick(
    BorderSide sides,
    float borderWidth,
    Color borderColor,
    Color backColor
)

Parameters

Name Type Description
sides BorderSide

A BorderSide enumeration value(s) which specifies the borders displayed around the brick.

borderWidth Single

A Single value which specifies the border width of the brick, measured in pixels.

borderColor Color

A Color object which specifies the border color of the brick.

backColor Color

A Color object which specifies the background color of the brick.

Remarks

Use this constructor to create a new instance of the CheckBoxBrick class with the ability to specify the borders displayed around the brick, the color and width of the borders and the background color of the brick.

To create a CheckBoxBrick with default settings, you should use this constructor without parameters.

After a brick is created it can, for example, be drawn via the BrickGraphics.DrawBrick method.

Example

The following sample code demonstrates how to use a constructor of the CheckBoxBrick with parameters.

using System.Drawing;
using DevExpress.XtraPrinting;
// ...

CheckBoxBrick checkBoxBrick = new CheckBoxBrick(BorderSide.All, 1, Color.Red, Color.Silver);
See Also