Table of Contents

Class RepInt32

Namespace
Root.ReportNet.Pdf
Assembly
ReportNet.dll

Represents an integer object in a PDF report, where the dimensions are in points.

public class RepInt32 : RepString
Inheritance
RepInt32
Derived
Inherited Members

Examples

StandardFontDef fontDef = new(StandardFont.Helvetica);
FontProp font = new(fontDef, 10);
RepInt32 ri = new(font, 1234567, "N0", CultureInfo.InvariantCulture);

Result: 1,234,567

Constructors

RepInt32(FontProp, int, double, CultureInfo?)

Initializes a new instance of the RepInt32 class with the specified font, number, maximum width and culture information.

public RepInt32(FontProp font, int number, double widthMax, CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number int

The integer value.

widthMax double

The maximum width of the number string in points.

cultureInfo CultureInfo

The culture information used to format the integer value. The default value is null which takes the current culture.

Exceptions

ArgumentNullException

The font is null.

RepInt32(FontProp, int, string, double, CultureInfo?)

Initializes a new instance of the RepInt32 class with the specified font, number, format, maximum width and culture information.

public RepInt32(FontProp font, int number, string format, double widthMax, CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number int

The integer value.

format string

The format string for the number.

widthMax double

The maximum width of the number string in points.

cultureInfo CultureInfo

The 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.

RepInt32(FontProp, int, string, CultureInfo?)

Initializes a new instance of the RepInt32 class with the specified font, number, format and culture information.

public RepInt32(FontProp font, int number, string format = "F0", CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number int

The integer value.

format string

The format string for the number.

cultureInfo CultureInfo

The 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.

RepInt32(FontProp, int?, double, CultureInfo?)

Initializes a new instance of the RepInt32 class with the specified font, nullable number, maximum width and culture information.

public RepInt32(FontProp font, int? number, double widthMax, CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number int?

The nullable integer value.

widthMax double

The maximum width of the number string in points.

cultureInfo CultureInfo

The culture information used to format the integer value. The default value is null which takes the current culture.

Exceptions

ArgumentNullException

The font is null.

RepInt32(FontProp, int?, string, double, CultureInfo?)

Initializes a new instance of the RepInt32 class with the specified font, nullable number, format, maximum width and culture information.

public RepInt32(FontProp font, int? number, string format, double widthMax, CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number int?

The nullable integer value.

format string

The format string for the number.

widthMax double

The maximum width of the number string in points.

cultureInfo CultureInfo

The 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.

RepInt32(FontProp, int?, string, CultureInfo?)

Initializes a new instance of the RepInt32 class with the specified font, nullable number, format and culture information.

public RepInt32(FontProp font, int? number, string format = "F0", CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number int?

The nullable integer value.

format string

The format string for the number.

cultureInfo CultureInfo

The 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.

Properties

Value

Gets the Int32 value of the report object.

public int? Value { get; }

Property Value

int?

The Int32 value, nullable.

See Also