Class RepInt32MM
Represents an integer object in a PDF report, where the dimensions are in millimeters.
public class RepInt32MM : RepInt32
- Inheritance
-
RepInt32MM
- Inherited Members
Examples
StandardFontDef fontDef = new(StandardFont.Helvetica);
FontProp font = new(fontDef, 10);
RepInt32MM ri = new(font, 1234567, "N0", 50, CultureInfo.InvariantCulture);
Result: 1,234,567
Constructors
RepInt32MM(FontProp, int, double, CultureInfo?)
Initializes a new instance of the RepInt32MM class with the specified font, number, maximum width and culture information.
public RepInt32MM(FontProp font, int number, double widthMaxMM, CultureInfo? cultureInfo = null)
Parameters
font
FontPropThe font for the number.
number
intThe integer value.
widthMaxMM
doubleThe maximum width of the number string in millimeters.
cultureInfo
CultureInfoThe culture information used to format the integer value. The default value is null which takes the current culture.
Exceptions
- ArgumentNullException
The font is null.
RepInt32MM(FontProp, int, string, double, CultureInfo?)
Initializes a new instance of the RepInt32MM class with the specified font, number, format, maximum width and culture information.
public RepInt32MM(FontProp font, int number, string format, double widthMaxMM, CultureInfo? cultureInfo = null)
Parameters
font
FontPropThe font for the number.
number
intThe integer value.
format
stringThe format string for the number.
widthMaxMM
doubleThe maximum width of the number string in millimeters.
cultureInfo
CultureInfoThe culture information used to format the integer value. The default value is null which takes the current culture.
Exceptions
- ArgumentNullException
The font or the format is null.
RepInt32MM(FontProp, int?, double, CultureInfo?)
Initializes a new instance of the RepInt32MM class with the specified font, nullable number, maximum width and culture information.
public RepInt32MM(FontProp font, int? number, double widthMaxMM, CultureInfo? cultureInfo = null)
Parameters
font
FontPropThe font for the number.
number
int?The nullable integer value.
widthMaxMM
doubleThe maximum width of the number string in millimeters.
cultureInfo
CultureInfoThe culture information used to format the integer value. The default value is null which takes the current culture.
Exceptions
- ArgumentNullException
The font is null.
RepInt32MM(FontProp, int?, string, double, CultureInfo?)
Initializes a new instance of the RepInt32MM class with the specified font, nullable number, format, maximum width and culture information.
public RepInt32MM(FontProp font, int? number, string format, double widthMaxMM, CultureInfo? cultureInfo = null)
Parameters
font
FontPropThe font for the number.
number
int?The nullable integer value.
format
stringThe format string for the number.
widthMaxMM
doubleThe maximum width of the number string in millimeters.
cultureInfo
CultureInfoThe culture information used to format the integer value. The default value is null which takes the current culture.
Exceptions
- ArgumentNullException
The font or the format is null.