共用方式為


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.

public CellValue ();
Public Sub New ()

Applies to

CellValue(Boolean)

Instantiates an instance of CellValue for a Boolean.

public CellValue (bool value);
new DocumentFormat.OpenXml.Spreadsheet.CellValue : bool -> DocumentFormat.OpenXml.Spreadsheet.CellValue
Public Sub New (value As Boolean)

Parameters

value
Boolean

Boolean value

Applies to

CellValue(DateTime)

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

public CellValue (DateTime dateTime);
new DocumentFormat.OpenXml.Spreadsheet.CellValue : DateTime -> DocumentFormat.OpenXml.Spreadsheet.CellValue
Public Sub New (dateTime As DateTime)

Parameters

dateTime
DateTime

DateTime for cell

Applies to

CellValue(DateTimeOffset)

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

public CellValue (DateTimeOffset dateTimeOffset);
new DocumentFormat.OpenXml.Spreadsheet.CellValue : DateTimeOffset -> DocumentFormat.OpenXml.Spreadsheet.CellValue
Public Sub New (dateTimeOffset As DateTimeOffset)

Parameters

dateTimeOffset
DateTimeOffset

DateTime for cell

Applies to

CellValue(Decimal)

Instantiates an instance of CellValue for a Decimal.

public CellValue (decimal value);
new DocumentFormat.OpenXml.Spreadsheet.CellValue : decimal -> DocumentFormat.OpenXml.Spreadsheet.CellValue
Public Sub New (value As Decimal)

Parameters

value
Decimal

Number.

Applies to

CellValue(Double)

Instantiates an instance of CellValue for a Double.

public CellValue (double value);
new DocumentFormat.OpenXml.Spreadsheet.CellValue : double -> DocumentFormat.OpenXml.Spreadsheet.CellValue
Public Sub New (value As Double)

Parameters

value
Double

Number.

Applies to

CellValue(Int32)

Instantiates an instance of CellValue for a Int32.

public CellValue (int value);
new DocumentFormat.OpenXml.Spreadsheet.CellValue : int -> DocumentFormat.OpenXml.Spreadsheet.CellValue
Public Sub New (value As Integer)

Parameters

value
Int32

Number.

Applies to

CellValue(String)

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

public CellValue (string text);
new DocumentFormat.OpenXml.Spreadsheet.CellValue : string -> DocumentFormat.OpenXml.Spreadsheet.CellValue
Public Sub New (text As String)

Parameters

text
String

Specifies the text content of the element.

Applies to