Back to Devexpress

CustomLabelInformation.Unit Property

xtrareports-devexpress-dot-xtrareports-dot-wizards-dot-customlabelinformation.md

latest3.2 KB
Original Source

CustomLabelInformation.Unit Property

Specifies the unit of measurement of a custom label.

Namespace : DevExpress.XtraReports.Wizards

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public DXGraphicsUnit Unit { get; set; }
vb
Public Property Unit As DXGraphicsUnit

Property Value

TypeDescription
DXGraphicsUnit

An enumeration value that indicates the measurement unit.

|

Available values:

NameDescription
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.

reporting-winforms-label-report-in-code/CS/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.cs#L81

csharp
customLblInfo.PaperKindDataId = model.PaperKindID;
customLblInfo.Unit = model.MeasurementUnit;
reportModel.CustomLabelInformation = customLblInfo;

reporting-winforms-label-report-in-code/VB/Reporting_how-to-create-a-label-report-at-runtime-t473792/LabelReportRuntime/CustomLabelReportBuilder.vb#L80

vb
customLblInfo.PaperKindDataId = model.PaperKindID
customLblInfo.Unit = model.MeasurementUnit
reportModel.CustomLabelInformation = customLblInfo

See Also

CustomLabelInformation Class

CustomLabelInformation Members

DevExpress.XtraReports.Wizards Namespace