Back to Devexpress

VisualBrick Class

corelibraries-devexpress-dot-xtraprinting-fdda6cb0.md

latest10.0 KB
Original Source

VisualBrick Class

A visual brick that is rendered on a page as a simple rectangle and the base for all other visual bricks.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[BrickExporter(typeof(VisualBrickExporter))]
public class VisualBrick :
    Brick,
    IVisualBrick,
    IBaseBrick,
    IBrick,
    IXtraPartlyDeserializable
vb
<BrickExporter(GetType(VisualBrickExporter))>
Public Class VisualBrick
    Inherits Brick
    Implements IVisualBrick,
               IBaseBrick,
               IBrick,
               IXtraPartlyDeserializable

The following members return VisualBrick objects:

Show 29 links

LibraryRelated API Members
Cross-Platform Class LibraryBookmarkInfo.ParentBrick
BrickGraphics.DrawRect(RectangleF, BorderSide, Color, Color)
CustomPrintEventArgs.Brick
EditingField.Brick
WinForms ControlsRepositoryItem.GetBrick(PrintCellHelperInfo)
RepositoryItemAnyControl.GetBrick(PrintCellHelperInfo)
RepositoryItemBaseProgressBar.GetBrick(PrintCellHelperInfo)
RepositoryItemCheckEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemColorEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemHyperLinkEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemHypertextLabel.GetBrick(PrintCellHelperInfo)
RepositoryItemImageComboBox.GetBrick(PrintCellHelperInfo)
RepositoryItemImageEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemMemoEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemMemoExEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemPictureEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemProgressBar.GetBrick(PrintCellHelperInfo)
RepositoryItemRadioGroup.GetBrick(PrintCellHelperInfo)
RepositoryItemRatingControl.GetBrick(PrintCellHelperInfo)
RepositoryItemRichTextEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemSparklineEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemTextEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemToggleSwitch.GetBrick(PrintCellHelperInfo)
RepositoryItemTokenEdit.GetBrick(PrintCellHelperInfo)
RepositoryItemTrackBar.GetBrick(PrintCellHelperInfo)
.NET Reporting ToolsDrawEventArgs.Brick
HtmlEventArgs.Brick
PreviewClickEventArgs.Brick
PreviewMouseEventArgs.Brick

Remarks

VisualBrick exposes the properties that define the basic behavior of a visual brick.

Example

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

csharp
using DevExpress.XtraPrinting;
// ...

    VisualBrick visBrick;
    BrickGraphics brickGraph = printingSystem1.Graph;

    // Start the report generation.
    printingSystem1.Begin();

    // 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.
    printingSystem1.End();

    // Preview the report.
    printingSystem1.PreviewFormEx.Show();
vb
Imports DevExpress.XtraPrinting
' ...

    Dim visBrick As VisualBrick
    Dim brickGraph As BrickGraphics = printingSystem1.Graph

    ' Start the report generation.
    printingSystem1.Begin()

    ' Create a rectangle.
    Dim rect As RectangleF = 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.
    printingSystem1.End()

    ' Preview the report.
    printingSystem1.PreviewFormEx.Show()

Implements

IXtraSupportDeserializeCollectionItem

ITableCell

IBrick

Inheritance

Show 24 items

Object DevExpress.Printing.Utils.DocumentStoring.StorableObjectBase BrickBase Brick VisualBrick CheckBoxBrick

ImageBrick

LineBrick

PanelBrick

ProgressBarBrick

ShapeBrick

TextBrickBase

CharacterCombBrick

LabelBrick

BarCodeBrick

TextBrick

PageImageBrick

PageInfoBrick

PageInfoTextBrick

PageInfoTextBrickBase

PageTableBrick

ZipCodeBrick

RichTextBrick

RichTextBrickBase

See Also

VisualBrick Members

Bricks

Classes Hierarchy: Bricks

DevExpress.XtraPrinting Namespace