ImageBrick(BorderSide, Single, Color, Color) Constructor
Initializes a new instance of the ImageBrick class.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
public ImageBrick(
BorderSide sides,
float borderWidth,
Color borderColor,
Color backColor
)
#Parameters
Name | Type | Description |
---|---|---|
sides | Border |
A Border |
border |
Single | A float value which specifies the border width of the Image |
border |
Color | A Color object which specifies the border color of the Image |
back |
Color | A Color object which specifies the background color of the current Image |
#Remarks
Use this constructor to create a new instance of the ImageBrick 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 ImageBrick 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 ImageBrick with parameters.
using System.Drawing;
using DevExpress.XtraPrinting;
// ...
ImageBrick imageBoxBrick = new ImageBrick(BorderSide.All, 1, Color.Red, Color.Silver);