officefileapi-devexpress-dot-barcodes-dot-barcode-14b2f9ac.md
Gets or sets the unit of measurement for bar code settings.
Namespace : DevExpress.BarCodes
Assembly : DevExpress.Docs.v25.2.dll
NuGet Package : DevExpress.Document.Processor
public DXGraphicsUnit Unit { get; set; }
Public Property Unit As DXGraphicsUnit
| Type | Description |
|---|---|
| DXGraphicsUnit |
An enumeration value that indicates the measurement units.
|
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.
|
| Type | Description |
|---|---|
| InvalidEnumArgumentException |
Thrown if the property is set to DXGraphicsUnit.World.
|
See Also