ExcelTabularRowWriter
OfficeIMO.Excel.ExcelDocument
Writes strongly typed values into the current package-native worksheet row.
Inheritance
- object
- ExcelTabularRowWriter
Remarks
XLS and XLSB store numeric cells as IEEE-754 doubles. Large integers and high-precision decimals may lose digits; write a string when every digit must be retained.
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 5
Accepted by parameters 1
Methods
public ExcelTabularRowWriter SetNextCellStyle(string? name) #Selects a declared complete style for the next cell only. Null restores normal row/column inheritance. An empty declared definition explicitly applies Normal formatting.
Parameters
- name string?
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter SetRowStyle(string? name) #Selects a declared default for the current row before its first cell. Null clears the configured row default. The selected complete style overrides column defaults.
Parameters
- name string?
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(string? value) #Writes a text cell.
Parameters
- value string?
Returns
ExcelTabularRowWriterExceptions
ArgumentException– The text exceeds Excel's limit; the row keeps its position and any selected cell style.
public ExcelTabularRowWriter Write(bool value) #Writes a Boolean cell.
Parameters
- value bool
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(DateTime value) #Writes a date and time cell.
Parameters
- value System.DateTime
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(DateTimeOffset value) #Writes a date, time, and offset cell.
Parameters
- value System.DateTimeOffset
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(TimeSpan value) #Writes a duration cell.
Parameters
- value System.TimeSpan
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(double value) #Writes a double-precision numeric cell.
Parameters
- value double
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(float value) #Writes a single-precision numeric cell.
Parameters
- value float
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(decimal value) #Writes a decimal cell.
Parameters
- value decimal
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(sbyte value) #Writes a signed 8-bit integer cell.
Parameters
- value sbyte
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(byte value) #Writes an unsigned 8-bit integer cell.
Parameters
- value byte
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(short value) #Writes a signed 16-bit integer cell.
Parameters
- value short
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(ushort value) #Writes an unsigned 16-bit integer cell.
Parameters
- value ushort
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(int value) #Writes a signed 32-bit integer cell.
Parameters
- value int
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(uint value) #Writes an unsigned 32-bit integer cell.
Parameters
- value uint
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(long value) #Writes a signed 64-bit integer cell.
Parameters
- value long
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(ulong value) #Writes an unsigned 64-bit integer cell.
Parameters
- value ulong
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter Write(object? value) #Writes a cell using the runtime value type.
Parameters
- value object?
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter WriteBlank() #Writes a genuine blank cell, with the selected style or inherited row/column default.
Returns
ExcelTabularRowWriterpublic ExcelTabularRowWriter WriteUtf8(ReadOnlySpan<byte> value) #Writes a text cell from a complete UTF-8 value on .NET 8 and later.
Parameters
- value System.ReadOnlySpan<byte>
- Well-formed UTF-8 text containing at most 32,767 UTF-16 characters.
Exceptions
ArgumentException– The text is invalid UTF-8, contains an invalid XML scalar, or exceeds Excel's text limit.