Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelTabularRowWriter

OfficeIMO.Excel.ExcelDocument

Namespace
OfficeIMO.Excel.ExcelDocument
Assembly
OfficeIMO.Excel
Source revision
07c6bff0a794 with working tree changes
Modifiers
sealed

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.

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? required
public 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? required
Write 17 overloads
public ExcelTabularRowWriter Write(string? value) #

Writes a text cell.

Parameters

value string? required

Exceptions

  • 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 required
public ExcelTabularRowWriter Write(DateTime value) #

Writes a date and time cell.

Parameters

value System.DateTime required
public ExcelTabularRowWriter Write(DateTimeOffset value) #

Writes a date, time, and offset cell.

Parameters

value System.DateTimeOffset required
public ExcelTabularRowWriter Write(TimeSpan value) #

Writes a duration cell.

Parameters

value System.TimeSpan required
public ExcelTabularRowWriter Write(double value) #

Writes a double-precision numeric cell.

Parameters

value double required
public ExcelTabularRowWriter Write(float value) #

Writes a single-precision numeric cell.

Parameters

value float required
public ExcelTabularRowWriter Write(decimal value) #

Writes a decimal cell.

Parameters

value decimal required
public ExcelTabularRowWriter Write(sbyte value) #

Writes a signed 8-bit integer cell.

Parameters

value sbyte required
public ExcelTabularRowWriter Write(byte value) #

Writes an unsigned 8-bit integer cell.

Parameters

value byte required
public ExcelTabularRowWriter Write(short value) #

Writes a signed 16-bit integer cell.

Parameters

value short required
public ExcelTabularRowWriter Write(ushort value) #

Writes an unsigned 16-bit integer cell.

Parameters

value ushort required
public ExcelTabularRowWriter Write(int value) #

Writes a signed 32-bit integer cell.

Parameters

value int required
public ExcelTabularRowWriter Write(uint value) #

Writes an unsigned 32-bit integer cell.

Parameters

value uint required
public ExcelTabularRowWriter Write(long value) #

Writes a signed 64-bit integer cell.

Parameters

value long required
public ExcelTabularRowWriter Write(ulong value) #

Writes an unsigned 64-bit integer cell.

Parameters

value ulong required
public ExcelTabularRowWriter Write(object? value) #

Writes a cell using the runtime value type.

Parameters

value object? required
public ExcelTabularRowWriter WriteBlank() #

Writes a genuine blank cell, with the selected style or inherited row/column default.

public 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> required
Well-formed UTF-8 text containing at most 32,767 UTF-16 characters.

Returns

ExcelTabularRowWriter The current row writer.

Exceptions

  • ArgumentException – The text is invalid UTF-8, contains an invalid XML scalar, or exceeds Excel's text limit.