Class RepDoubleMM
Represents a double object in a PDF report, where the dimensions are in millimeters.
public class RepDoubleMM : RepDouble
- Inheritance
-
RepDoubleMM
- Inherited Members
Examples
StandardFontDef fontDef = new(StandardFont.Helvetica);
FontProp font = new(fontDef, 10);
RepDoubleMM rd = new(font, 1234567.891, "N2", 50, CultureInfo.InvariantCulture);
Result: 1,234,567.89
Constructors
RepDoubleMM(FontProp, double, string, double, CultureInfo?)
Initializes a new instance of the RepDoubleMM class with the specified font, number, format, maximum width and culture information.
public RepDoubleMM(FontProp font, double number, string format, double widthMaxMM, CultureInfo? cultureInfo = null)
Parameters
fontFontPropThe font for the number.
numberdoubleThe double value.
formatstringThe format string for the number.
widthMaxMMdoubleThe maximum width of the number string in millimeters.
cultureInfoCultureInfoThe culture information used to format the double value. The default value is null which takes the current culture.
Exceptions
- ArgumentNullException
The font or the format is null.
RepDoubleMM(FontProp, double?, string, double, CultureInfo?)
Initializes a new instance of the RepDoubleMM class with the specified font, nullable number, format, maximum width and culture information.
public RepDoubleMM(FontProp font, double? number, string format, double widthMaxMM, CultureInfo? cultureInfo = null)
Parameters
fontFontPropThe font for the number.
numberdouble?The nullable double value.
formatstringThe format string for the number.
widthMaxMMdoubleThe maximum width of the number string in millimeters.
cultureInfoCultureInfoThe culture information used to format the double value. The default value is null which takes the current culture.
Exceptions
- ArgumentNullException
The font or the format is null.