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

ASPxTreeListExportRenderBrickEventArgs.BrickStyle Property

Gets the appearance settings used to paint report bricks.

Namespace: DevExpress.Web.ASPxTreeList

Assembly: DevExpress.Web.ASPxTreeList.v18.2.dll

Declaration

public BrickStyle BrickStyle { get; }

Property Value

Type Description
BrickStyle

A BrickStyle object that contains style settings.

Remarks

Use the BrickStyle property to specify the appearance of report bricks. You can specify the foreground, background and border colors for bricks, the font, border side settings and text formatting information.

Example

This example shows how to draw department names in an exported document, based on their budget. Department names are painted in Orange if their budget is less than $100,000.

The image below shows the result:

CustomExport

using DevExpress.Web.ASPxTreeList;

protected void ASPxTreeListExporter1_RenderBrick(object sender,
DevExpress.Web.ASPxTreeList.Export.ASPxTreeListExportRenderBrickEventArgs e) {
    if (e.RowKind == TreeListRowKind.Data && e.Column != null &
        e.Column.FieldName == "Department") {
        if (Convert.ToInt32(ASPxTreeList1.FindNodeByKeyValue(e.NodeKey)["Budget"]) < 100000)
            e.BrickStyle.BackColor = System.Drawing.Color.Orange;
    }
}
See Also