# ExcelTabularRowWriter

Writes strongly typed values into the current package-native worksheet row.

Class 

`OfficeIMO.Excel.ExcelDocument`

**Namespace**

`OfficeIMO.Excel.ExcelDocument`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`07c6bff0a794` with working tree changes

**Source**

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L115)

**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.

### Returned or exposed by 5

- Method [ExcelTabularRowWriter.SetNextCellStyle](/api/excel/officeimo-excel-exceldocument-exceltabularrowwriter/#method-setnextcellstyle-string)
- Method [ExcelTabularRowWriter.SetRowStyle](/api/excel/officeimo-excel-exceldocument-exceltabularrowwriter/#method-setrowstyle-string)
- Method [ExcelTabularRowWriter.Write](/api/excel/officeimo-excel-exceldocument-exceltabularrowwriter/#method-write-string)
- Method [ExcelTabularRowWriter.WriteBlank](/api/excel/officeimo-excel-exceldocument-exceltabularrowwriter/#method-writeblank)
- Method [ExcelTabularRowWriter.WriteUtf8](/api/excel/officeimo-excel-exceldocument-exceltabularrowwriter/#method-writeutf8-readonlyspan-system-byte)

### Accepted by parameters 1

- Method [ExcelWorkbookWriter.WriteTable``1](/api/excel/officeimo-excel-excelworkbookwriter/#method-writetable-string-collections-generic-ienumerable-collections-generic-ireadonlylist-system-string-action-officeimo-excel-exceldocument-exceltabularrowwriter-threading-cancellationtoken) parameter `writeRow`

Filter members 

Show inherited

## Methods

`public ExcelTabularRowWriter SetNextCellStyle(string? name)` [#](#method-setnextcellstyle-string)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.Styles.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.Styles.cs#L26)

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**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter SetRowStyle(string? name)` [#](#method-setrowstyle-string)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.Styles.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.Styles.cs#L15)

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**

Returns

`ExcelTabularRowWriter`

Write 17 overloads

`public ExcelTabularRowWriter Write(string? value)` [#](#method-write-string)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:115](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L115)

Writes a text cell.

Parameters

**value string? required**

Returns

`ExcelTabularRowWriter`

Exceptions

- `ArgumentException` – The text exceeds Excel's limit; the row keeps its position and any selected cell style.

`public ExcelTabularRowWriter Write(bool value)` [#](#method-write-boolean)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:125](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L125)

Writes a Boolean cell.

Parameters

**value bool required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(DateTime value)` [#](#method-write-datetime)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:133](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L133)

Writes a date and time cell.

Parameters

**value System.DateTime required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(DateTimeOffset value)` [#](#method-write-datetimeoffset)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:141](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L141)

Writes a date, time, and offset cell.

Parameters

**value System.DateTimeOffset required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(TimeSpan value)` [#](#method-write-timespan)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:150](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L150)

Writes a duration cell.

Parameters

**value System.TimeSpan required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(double value)` [#](#method-write-double)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:152](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L152)

Writes a double-precision numeric cell.

Parameters

**value double required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(float value)` [#](#method-write-single)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L154)

Writes a single-precision numeric cell.

Parameters

**value float required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(decimal value)` [#](#method-write-decimal)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:156](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L156)

Writes a decimal cell.

Parameters

**value decimal required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(sbyte value)` [#](#method-write-sbyte)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:158](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L158)

Writes a signed 8-bit integer cell.

Parameters

**value sbyte required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(byte value)` [#](#method-write-byte)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:160](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L160)

Writes an unsigned 8-bit integer cell.

Parameters

**value byte required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(short value)` [#](#method-write-int16)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:162](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L162)

Writes a signed 16-bit integer cell.

Parameters

**value short required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(ushort value)` [#](#method-write-uint16)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:164](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L164)

Writes an unsigned 16-bit integer cell.

Parameters

**value ushort required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(int value)` [#](#method-write-int32)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:166](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L166)

Writes a signed 32-bit integer cell.

Parameters

**value int required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(uint value)` [#](#method-write-uint32)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:168](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L168)

Writes an unsigned 32-bit integer cell.

Parameters

**value uint required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(long value)` [#](#method-write-int64)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:170](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L170)

Writes a signed 64-bit integer cell.

Parameters

**value long required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(ulong value)` [#](#method-write-uint64)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:172](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L172)

Writes an unsigned 64-bit integer cell.

Parameters

**value ulong required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter Write(object? value)` [#](#method-write-object)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.cs:176](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.cs#L176)

Writes a cell using the runtime value type.

Parameters

**value object? required**

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter WriteBlank()` [#](#method-writeblank)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.Styles.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.Styles.cs#L34)

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

Returns

`ExcelTabularRowWriter`

`public ExcelTabularRowWriter WriteUtf8(ReadOnlySpan<byte> value)` [#](#method-writeutf8-readonlyspan-system-byte)

[ExcelDocument.DirectDataSet.Writer.ObjectRows.Utf8.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.Excel/ExcelDocument.DirectDataSet.Writer.ObjectRows.Utf8.cs#L23)

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.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:E5E275ECECF3970C2D09E4FA8CBE713893900D8E704E535FB3B27BE338B33465 -->
