Table of Contents

Class RepDouble

Namespace
Root.ReportNet.Pdf
Assembly
ReportNet.dll

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

public class RepDouble : RepString
Inheritance
RepDouble
Derived
Inherited Members

Examples

StandardFontDef fontDef = new(StandardFont.Helvetica);
FontProp font = new(fontDef, 10);
RepDouble rd = new(font, 1234567.891, "N2", CultureInfo.InvariantCulture);

Result: 1,234,567.89

Constructors

RepDouble(FontProp, double, string, double, CultureInfo?)

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

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

Parameters

font FontProp

The font for the number.

number double

The double 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 double value. The default value is null which takes the current culture.

Exceptions

ArgumentNullException

The font or the format is null.

RepDouble(FontProp, double, string, CultureInfo?)

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

public RepDouble(FontProp font, double number, string format, CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number double

The double value.

format string

The format string for the number.

cultureInfo CultureInfo

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

RepDouble(FontProp, double?, string, double, CultureInfo?)

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

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

Parameters

font FontProp

The font for the number.

number double?

The nullable double 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 double value. The default value is null which takes the current culture.

Exceptions

ArgumentNullException

The font or the format is null.

RepDouble(FontProp, double?, string, CultureInfo?)

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

public RepDouble(FontProp font, double? number, string format, CultureInfo? cultureInfo = null)

Parameters

font FontProp

The font for the number.

number double?

The nullable double value.

format string

The format string for the number.

cultureInfo CultureInfo

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

Properties

Value

Gets the double value of the report object.

public double? Value { get; }

Property Value

double?

The double value, nullable.

See Also