A newer version of this page is available. Switch to the current version.

BrickGraphics.Modifier Property

Specifies the page area for displaying a specific brick.

Namespace: DevExpress.XtraPrinting

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


public BrickModifier Modifier { get; set; }
Public Property Modifier As BrickModifier

Property Value

Type Description

A BrickModifier enumerator value that defines the page area for displaying a specific brick.


A report contains several sections. These sections are listed in the BrickModifier enumerator. The following image describes a report's structure:

Report Structure

In order to be displayed in the preview window, a report must contain at least one brick in the detail section. However, bricks can be inserted into any report section. To customize a report section, you should set the BrickGraphics.Modifier property to one of the BrickModifier members. Modifier is a trigger that tells the PrintingSystem which report section to customize.


The following code demonstrates how to create a VisualBrick and specify its dimensions and border settings, using the BrickGraphics.DrawRect method:

using DevExpress.XtraPrinting;
// ...

    VisualBrick visBrick;
    BrickGraphics brickGraph = printingSystem1.Graph;

    // Start the report generation.

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

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

    // Add a brick to the report.
    visBrick = brickGraph.DrawRect(rect, BorderSide.All, Color.Yellow, Color.Blue);

    // Finish the report generation.

    // Preview the report.
See Also