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

RepositoryItem.GetBrick(PrintCellHelperInfo) Method

Returns a brick object that contains information on how the current editor should be printed.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

public virtual IVisualBrick GetBrick(
    PrintCellHelperInfo info
)

Parameters

Name Type Description
info DevExpress.XtraEditors.PrintCellHelperInfo

A DevExpress.XtraEditors.PrintCellHelperInfo object that provides information on the editor’s state and appearance settings that will be used when the editor is printed.

Returns

Type Description
DevExpress.XtraPrinting.IVisualBrick

An DevExpress.XtraPrinting.IVisualBrick object that provides information on how the current editor should be printed.

Remarks

This method is automatically invoked by the printing mechanism when a container control (XtraGrid, XtraTreeList, etc) that uses the current repository item is printed via the Printing System Library. Generally there is no need to call this method directly from your code.

You may need to override the GetBrick method if you create a custom editor and want it to be printed in a specific manner.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetBrick(PrintCellHelperInfo) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also