Skip to main content

BrickGraphics.PageUnit Property

Defines graphic measurement units.

Namespace: DevExpress.XtraPrinting

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

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

Declaration

public DXGraphicsUnit PageUnit { get; set; }

Property Value

Type Description
DXGraphicsUnit

Indicates the drawing unit.

Available values:

Name Description
World

The world coordinate system unit.

Display

The measurement units of the display device. Typically pixels for video displays, and 1/100 inch for printers.

Pixel

The device pixel.

Point

The printer’s point (1/72 inch).

Inch

The inch.

Document

The document unit (1/300 inch).

Millimeter

The millimeter.

Remarks

This property allows you to customize measurement units for a report. The default value for this property is DXGraphicsUnit.Pixel. When a user supplies dimensions for bricks, dimension values are supplied in current drawing units. After brick or rectangle creation, these units are automatically converted to DXGraphicsUnit.Document units. So, to change the size of a brick or rectangle after its creation, new values must be entered in DXGraphicsUnit.Document units.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PageUnit property.

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