xtrareports-devexpress-dot-xtrareports-dot-wizards-dot-customlabelinformation.md
Specifies the unit of measurement of a custom label.
Namespace : DevExpress.XtraReports.Wizards
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
public DXGraphicsUnit Unit { get; set; }
Public Property Unit As DXGraphicsUnit
| Type | Description |
|---|---|
| DXGraphicsUnit |
An enumeration value that indicates the measurement 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.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Unit 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.
customLblInfo.PaperKindDataId = model.PaperKindID;
customLblInfo.Unit = model.MeasurementUnit;
reportModel.CustomLabelInformation = customLblInfo;
customLblInfo.PaperKindDataId = model.PaperKindID
customLblInfo.Unit = model.MeasurementUnit
reportModel.CustomLabelInformation = customLblInfo
See Also