namespace FastReport.Import.RDL { /// /// The RDL Size units. /// public static class SizeUnits { #region Constants /// /// Specifies the units measured in millimeters. /// public const string Millimeter = "mm"; /// /// Specifies the units measured in centimeters. /// public const string Centimeter = "cm"; /// /// Specifies the units measured in inches. /// public const string Inch = "in"; /// /// Specifies the units measured in points. /// public const string Point = "pt"; /// /// Specifies the units measured in picas. /// public const string Pica = "pc"; #endregion // Constants } /// /// Defines the constants used to convert between RDL Size and pixels. /// /// /// To convert pixels to inches, use the code: /// inches = pixels / SizeUnitsP.Inch; /// To convert inches to pixels, use the code: /// pixels = inches * SizeUnitsP.Inch; /// public static class SizeUnitsP { #region Fields /// /// The number of pixels in one millimeter. /// public static float Millimeter = FastReport.Utils.Units.Millimeters; /// /// The number of pixels in one centimeter. /// public static float Centimeter = FastReport.Utils.Units.Centimeters; /// /// The number of pixels in one inch. /// public static float Inch = FastReport.Utils.Units.Inches; /// /// The number of pixels in one point. /// public static float Point = FastReport.Utils.Units.Millimeters * SizeUnitsM.Point; /// /// The number of pixels in one pica. /// public static float Pica = FastReport.Utils.Units.Millimeters * SizeUnitsM.Pica; #endregion // Fields } /// /// Defines the constants used to convert between RDL Size and millimeters. /// /// /// To convert millimeters to inches, use the code: /// inches = millimeters / SizeUnitsM.Inch; /// To convert inches to millimeters, use the code: /// millimeters = inches * SizeUnitsM.Inch; /// public static class SizeUnitsM { #region Constants /// /// The number of millimeters in one centimeter. /// public const float Centimeter = 10; /// /// The number of millimeters in one inch. /// public const float Inch = 25.4f; /// /// The number of millimeters in one point. /// public const float Point = 0.3528f; /// /// The number of millimeters in one pica. /// public const float Pica = 4.2336f; #endregion // Constants } }