• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Unit

Represents a dimensional measurement that can be expressed in multiple units (pixels, millimeters, inches, points, documents). Values are stored internally in pixels and converted using the current DRIT.Barcode.Generation.Unit.Resolution.

Inheritance
object
Unit
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DRIT.Barcode.Generation
Assembly: DRIT.Barcode.dll
Syntax
public class Unit

Constructors

Unit()

Initializes a new Unit with a value of zero pixels.

Declaration
public Unit()

Unit(float)

Initializes a new Unit with the specified pixel value.

Declaration
public Unit(float pixels)
Parameters
Type Name Description
float pixels

The value in pixels.

Properties

Document

Gets or sets the value in documents (1 inch = 300 documents).

Declaration
public float Document { get; set; }
Property Value
Type Description
float

Inches

Gets or sets the value in inches.

Declaration
public float Inches { get; set; }
Property Value
Type Description
float

Millimeters

Gets or sets the value in millimeters (1 inch = 25.4 mm).

Declaration
public float Millimeters { get; set; }
Property Value
Type Description
float

Pixels

Gets or sets the value in pixels.

Declaration
public float Pixels { get; set; }
Property Value
Type Description
float

Point

Gets or sets the value in points (1 inch = 72 points).

Declaration
public float Point { get; set; }
Property Value
Type Description
float

UnitType

Gets or sets the measurement unit.

Declaration
public GraphicsUnit UnitType { get; set; }
Property Value
Type Description
GraphicsUnit
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX