Struct XlsbCell
An immutable, typed cell value for WriteRow(ReadOnlySpan<XlsbCell>), created via one of the Create(string?) factory overloads.
public readonly record struct XlsbCell : IEquatable<XlsbCell>
- Implements
- Inherited Members
Properties
Empty
An empty cell, written as a gap in the row.
public static XlsbCell Empty { get; }
Property Value
Methods
Create(bool)
Creates a boolean cell from value.
public static XlsbCell Create(bool value)
Parameters
valuebool
Returns
Create(DateTime)
Creates a date cell from value.
public static XlsbCell Create(DateTime value)
Parameters
valueDateTime
Returns
Create(decimal)
Creates a numeric cell from value.
public static XlsbCell Create(decimal value)
Parameters
valuedecimal
Returns
Create(double)
Creates a numeric cell from value.
public static XlsbCell Create(double value)
Parameters
valuedouble
Returns
Create(int)
Creates a numeric cell from value.
public static XlsbCell Create(int value)
Parameters
valueint
Returns
Create(long)
Creates a numeric cell from value.
public static XlsbCell Create(long value)
Parameters
valuelong
Returns
Create(bool?)
Creates a boolean cell from value, or Empty if it has no value.
public static XlsbCell Create(bool? value)
Parameters
valuebool?
Returns
Create(DateTime?)
Creates a date cell from value, or Empty if it has no value.
public static XlsbCell Create(DateTime? value)
Parameters
valueDateTime?
Returns
Create(decimal?)
Creates a numeric cell from value, or Empty if it has no value.
public static XlsbCell Create(decimal? value)
Parameters
valuedecimal?
Returns
Create(double?)
Creates a numeric cell from value, or Empty if it has no value.
public static XlsbCell Create(double? value)
Parameters
valuedouble?
Returns
Create(int?)
Creates a numeric cell from value, or Empty if it has no value.
public static XlsbCell Create(int? value)
Parameters
valueint?
Returns
Create(long?)
Creates a numeric cell from value, or Empty if it has no value.
public static XlsbCell Create(long? value)
Parameters
valuelong?
Returns
Create(float?)
Creates a numeric cell from value, or Empty if it has no value.
public static XlsbCell Create(float? value)
Parameters
valuefloat?
Returns
Create(float)
Creates a numeric cell from value.
public static XlsbCell Create(float value)
Parameters
valuefloat
Returns
Create(string?)
public static XlsbCell Create(string? value)
Parameters
valuestring
Returns
Create<T>(T?)
Creates a numeric cell from value, or Empty if it has no value.
public static XlsbCell Create<T>(T? value) where T : struct, IUtf8SpanFormattable
Parameters
valueT?
Returns
Type Parameters
T
Create<T>(T)
Creates a numeric cell from value, formatting it via T's UTF-8 span formatting.
public static XlsbCell Create<T>(T value) where T : IUtf8SpanFormattable
Parameters
valueT
Returns
Type Parameters
T