# OfficeTable

One table handed to OfficeTableFormat.Write.

Class 

`OfficeIMO.Data`

**Namespace**

`OfficeIMO.Data`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`0ec96f8dbe73` with working tree changes

**Source**

[OfficeTableFormat.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/0ec96f8dbe73d007f9ad409b3e178ff58c9280d9/Sources/OfficeIMO.Core/Data/OfficeTableFormat.cs#L62)

**Modifiers**

sealed

One table handed to [OfficeTableFormat.Write](/api/core/officeimo-data-officetableformat/).

## Inheritance

- object
- OfficeTable

## Usage

Explore 1 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

- Method [OfficeTableFormat.Write](/api/core/officeimo-data-officetableformat/#method-write-io-stream-string-collections-generic-ienumerable-officeimo-data-officetable-threading-cancellationtoken) parameter `tables`

Filter members 

Show inherited

## Constructors

`public OfficeTable(string name, DbDataReader rows, bool includeHeader = true)` [#](#constructor-ctor-string-data-common-dbdatareader-boolean)

[OfficeTableFormat.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/0ec96f8dbe73d007f9ad409b3e178ff58c9280d9/Sources/OfficeIMO.Core/Data/OfficeTableFormat.cs#L62)

Creates a table.

Parameters

**name string required**

**rows System.Data.Common.DbDataReader required**

**includeHeader bool = true optional**

## 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 string Name { get; }` [#](#property-name)

[OfficeTableFormat.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/0ec96f8dbe73d007f9ad409b3e178ff58c9280d9/Sources/OfficeIMO.Core/Data/OfficeTableFormat.cs#L69)

Gets the table name. Providers adjust it to what the format allows.

`public DbDataReader Rows { get; }` [#](#property-rows)

[OfficeTableFormat.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/0ec96f8dbe73d007f9ad409b3e178ff58c9280d9/Sources/OfficeIMO.Core/Data/OfficeTableFormat.cs#L72)

Gets the rows of this table, read to the end of the current result.

`public bool IncludeHeader { get; }` [#](#property-includeheader)

[OfficeTableFormat.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/0ec96f8dbe73d007f9ad409b3e178ff58c9280d9/Sources/OfficeIMO.Core/Data/OfficeTableFormat.cs#L75)

Gets whether the field names are written as the first row.

<!-- PowerForge markdown artifact sha256:509E4F1A6A7CE4F32BFBCB9DCD4F544FC4D091476F5061E7730844B38BC6D514 -->
