CellValue Constructors

Definition

Overloads

CellValue()

Initializes a new instance of the CellValue class.

CellValue(Boolean)

Instantiates an instance of CellValue for a Boolean.

CellValue(DateTime)

Instantiates an instance of CellValue for a DateTime. Dates must be in ISO 8601 format, which this constructor ensures

CellValue(DateTimeOffset)

Instantiates an instance of CellValue for a DateTimeOffset. Dates must be in ISO 8601 format, which this constructor ensures

CellValue(Decimal)

Instantiates an instance of CellValue for a Decimal.

CellValue(Double)

Instantiates an instance of CellValue for a Double.

CellValue(Int32)

Instantiates an instance of CellValue for a Int32.

CellValue(String)

Initializes a new instance of the CellValue class with the specified text content.

CellValue()

Initializes a new instance of the CellValue class.

C#
public CellValue ();

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

CellValue(Boolean)

Instantiates an instance of CellValue for a Boolean.

C#
public CellValue (bool value);

Parameters

value
Boolean

Boolean value

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

CellValue(DateTime)

Instantiates an instance of CellValue for a DateTime. Dates must be in ISO 8601 format, which this constructor ensures

C#
public CellValue (DateTime dateTime);

Parameters

dateTime
DateTime

DateTime for cell

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

CellValue(DateTimeOffset)

Instantiates an instance of CellValue for a DateTimeOffset. Dates must be in ISO 8601 format, which this constructor ensures

C#
public CellValue (DateTimeOffset dateTimeOffset);

Parameters

dateTimeOffset
DateTimeOffset

DateTime for cell

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

CellValue(Decimal)

Instantiates an instance of CellValue for a Decimal.

C#
public CellValue (decimal value);

Parameters

value
Decimal

Number.

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

CellValue(Double)

Instantiates an instance of CellValue for a Double.

C#
public CellValue (double value);

Parameters

value
Double

Number.

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

CellValue(Int32)

Instantiates an instance of CellValue for a Int32.

C#
public CellValue (int value);

Parameters

value
Int32

Number.

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

CellValue(String)

Initializes a new instance of the CellValue class with the specified text content.

C#
public CellValue (string text);

Parameters

text
String

Specifies the text content of the element.

Applies to

DocumentFormat.OpenXml 3.0.1 an aner Versiounen
Produkt Versiounen
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1