# IWorkTableData

Mutable sparse scalar data for a newly created iWork table.

Class 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[IWorkTableData.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L20)

**Modifiers**

sealed

Mutable sparse scalar data for a newly created iWork table.

## Inheritance

- object
- IWorkTableData

## Remarks

Coordinates are one-based. Each axis supports 1–256 positions. Unset positions are empty; text is stored as text even when it begins with an equals sign. Instances are not thread safe.

## Usage

Explore 8 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 [IWorkTableData.ClearCell](/api/iwork/officeimo-iwork-iworktabledata/#method-clearcell-int32-int32)
- Method [IWorkTableData.Create](/api/iwork/officeimo-iwork-iworktabledata/#method-create-int32-int32)
- Method [IWorkTableData.SetBoolean](/api/iwork/officeimo-iwork-iworktabledata/#method-setboolean-int32-int32-boolean)
- Method [IWorkTableData.SetNumber](/api/iwork/officeimo-iwork-iworktabledata/#method-setnumber-int32-int32-double)
- Method [IWorkTableData.SetText](/api/iwork/officeimo-iwork-iworktabledata/#method-settext-int32-int32-string)

### Accepted by parameters 3

- Method [IWorkKeynoteSlideBuilder.AddTable](/api/iwork/officeimo-iwork-iworkkeynoteslidebuilder/#method-addtable-officeimo-iwork-iworktabledata-single-single-single-single-string-string-single-string) parameter `data`
- Method [IWorkNumbersSheetBuilder.AddTable](/api/iwork/officeimo-iwork-iworknumberssheetbuilder/#method-addtable-officeimo-iwork-iworktabledata-string-single-single-single-single-string-single-string) parameter `data`
- Method [IWorkPagesDocument.AddTable](/api/iwork/officeimo-iwork-iworkpagesdocument/#method-addtable-officeimo-iwork-iworktabledata-string-single-single-string-single-string) parameter `data`

Filter members 

Show inherited

## Methods

`public IWorkTableData ClearCell(int row, int column)` [#](#method-clearcell-int32-int32)

[IWorkTableData.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L46)

Returns a position to an unset empty cell.

Parameters

**row int required**

**column int required**

Returns

`IWorkTableData`

`public static IWorkTableData Create(int rows, int columns)` [#](#method-create-int32-int32)

[IWorkTableData.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L20)

Creates an empty table with fixed row and column counts.

Parameters

**rows int required**

**columns int required**

Returns

`IWorkTableData`

`public IWorkTableCell GetCell(int row, int column)` [#](#method-getcell-int32-int32)

[IWorkTableData.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L50)

Gets the scalar at a position, or an empty cell when it has not been set.

Parameters

**row int required**

**column int required**

Returns

`IWorkTableCell`

`public IWorkTableData SetBoolean(int row, int column, bool value)` [#](#method-setboolean-int32-int32-boolean)

[IWorkTableData.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L42)

Sets a boolean value, retaining its type rather than a text label.

Parameters

**row int required**

**column int required**

**value bool required**

Returns

`IWorkTableData`

SetNumber 2 overloads

`public IWorkTableData SetNumber(int row, int column, double value)` [#](#method-setnumber-int32-int32-double)

[IWorkTableData.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L28)

Sets a finite IEEE-754 double as a numeric value.

Parameters

**row int required**

**column int required**

**value double required**

Returns

`IWorkTableData`

`public IWorkTableData SetNumber(int row, int column, double value, IWorkNumberFormat numberFormat)` [#](#method-setnumber-int32-int32-double-officeimo-iwork-iworknumberformat)

[IWorkTableData.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L35)

Sets a finite number with an immutable explicit decimal, currency, percentage or scientific format.

Parameters

**row int required**

**column int required**

**value double required**

**numberFormat OfficeIMO.IWork.IWorkNumberFormat required**

Returns

`IWorkTableData`

`public IWorkTableData SetText(int row, int column, string text)` [#](#method-settext-int32-int32-string)

[IWorkTableData.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L24)

Sets text, normalizing CR/CRLF to LF and rejecting other controls and invalid UTF-16.

Parameters

**row int required**

**column int required**

**text string required**

Returns

`IWorkTableData`

## 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?`

## Properties

`public int RowCount { get; }` [#](#property-rowcount)

[IWorkTableData.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L16)

Gets the number of rows, including unset empty positions.

`public int ColumnCount { get; }` [#](#property-columncount)

[IWorkTableData.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTableData.cs#L18)

Gets the number of columns, including unset empty positions.

<!-- PowerForge markdown artifact sha256:7F28C5306B2197756071A9C937EE8C9FE9248B6D2C8609133E90A9F6780FB3FF -->
