CellValue Constructors
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.
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. |
Initializes a new instance of the CellValue class.
public CellValue ();
Public Sub New ()
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 |
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
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 |
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
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 |
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
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 |
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
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 |
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
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 |
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
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 |
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
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 |