Skip to main content
All docs
V22.2

BrickSelector.GetBricksByXRControl(IEnumerable<Page>, Object) Method

A static method that returns an enumeration of visual bricks generated by the specified XtraReport control from document pages.

Namespace: DevExpress.XtraPrinting

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

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design

Declaration

public static IEnumerable<VisualBrick> GetBricksByXRControl(
    IEnumerable<Page> pages,
    object xrControl
)

Parameters

Name Type Description
pages IEnumerable<Page>

The pages from which to return bricks.

xrControl Object

An XRControl descendant. A brick is returned if it was generated by this control.

Returns

Type Description
IEnumerable<VisualBrick>

Bricks from the specified pages.

Remarks

This method returns an empty enumeration if the CachedReportSource/CachedReportSourceWeb component was used to create the document.

See Also