Back to Devexpress

BarCode.Unit Property

officefileapi-devexpress-dot-barcodes-dot-barcode-14b2f9ac.md

latest1.7 KB
Original Source

BarCode.Unit Property

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

Declaration

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

Property Value

TypeDescription
DXGraphicsUnit

An enumeration value that indicates the measurement units.

|

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.

|

Exceptions

TypeDescription
InvalidEnumArgumentException

Thrown if the property is set to DXGraphicsUnit.World.

|

See Also

BarCode Class

BarCode Members

DevExpress.BarCodes Namespace