Class Units
Defines the constants used to convert between report units and screen pixels.
Inheritance
System.Object
Units
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Utils
Assembly: FastReport.OpenSource.dll
Syntax
public static class Units
Remarks
To convert pixels to millimeters, use the following code:
valueInMillimeters = valueInPixels / Units.Millimeters;
To convert millimeters to pixels, use the following code:
valueInPixels = valueInMillimeters * Units.Millimeters;
Fields
Centimeters
The number of pixels in one centimeter.
Declaration
public static float Centimeters
Field Value
Type | Description |
---|---|
System.Single |
HundrethsOfInch
The number of pixels in 1/100 of inch.
Declaration
public static float HundrethsOfInch
Field Value
Type | Description |
---|---|
System.Single |
Inches
The number of pixels in one inch.
Declaration
public static float Inches
Field Value
Type | Description |
---|---|
System.Single |
Millimeters
The number of pixels in one millimeter.
Declaration
public static float Millimeters
Field Value
Type | Description |
---|---|
System.Single |
TenthsOfInch
The number of pixels in 1/10 of ich.
Declaration
public static float TenthsOfInch
Field Value
Type | Description |
---|---|
System.Single |