CellValue Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CellValue() |
Initializes a new instance of the CellValue class. |
CellValue(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) | |
CellValue(Double) | |
CellValue(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)
CellValue(DateTime)
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)
CellValue(Double)
CellValue(Int32)
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.