# OfficeThemeTableStyle

Table colors and geometry shared by authoring formats.

Class 

`OfficeIMO`

**Namespace**

`OfficeIMO`

**Assembly**

`OfficeIMO.Core`

**Source revision**

`7fbbd72e7c5a` with working tree changes

**Source**

[OfficeThemeTableStyle.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L30)

**Modifiers**

sealed

Table colors and geometry shared by authoring formats.

## Inheritance

- object
- OfficeThemeTableStyle

## Usage

Explore 4 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 2

- Property [OfficeTheme.TableStyle](/api/core/officeimo-officetheme/#property-tablestyle)
- Method [OfficeThemeTableStyle.With](/api/core/officeimo-officethemetablestyle/#method-with-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-system-boolean-nullable-officeimo-officecolor-nullable-officeimo-officecolor-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officethemetablebordermode-officeimo-officethemerule-nullable-system-boolean-nullable-officeimo-officealignment)

### Accepted by parameters 2

- Constructor [OfficeTheme.OfficeTheme](/api/core/officeimo-officetheme/#constructor-ctor-string-officeimo-officethemepalette-officeimo-officethemefonts-officeimo-officethemetypescale-officeimo-officethemetablestyle-officeimo-officethemechartstyle-officeimo-officethemespacing) parameter `tableStyle`
- Method [OfficeTheme.WithTableStyle](/api/core/officeimo-officetheme/#method-withtablestyle-officeimo-officethemetablestyle) parameter `tableStyle`

Filter members 

Show inherited

## Constructors

OfficeThemeTableStyle 2 overloads

`public OfficeThemeTableStyle(OfficeColor headerFill, OfficeColor headerText, bool banding, OfficeColor bandFill, OfficeColor borderColor, OfficeLength borderWidth, OfficeLength cellPadding)` [#](#constructor-ctor-officeimo-officecolor-officeimo-officecolor-boolean-officeimo-officecolor-officeimo-officecolor-officeimo-officelength-officeimo-officelength)

[OfficeThemeTableStyle.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L30)

Creates immutable table colors and geometry with horizontal borders, a bold header, no header rule and right-aligned numbers.

Parameters

**headerFill OfficeIMO.OfficeColor required**

**headerText OfficeIMO.OfficeColor required**

**banding bool required**

**bandFill OfficeIMO.OfficeColor required**

**borderColor OfficeIMO.OfficeColor required**

**borderWidth OfficeIMO.OfficeLength required**

**cellPadding OfficeIMO.OfficeLength required**

`public OfficeThemeTableStyle(OfficeColor headerFill, OfficeColor headerText, bool banding, OfficeColor bandFill, OfficeColor borderColor, OfficeLength borderWidth, OfficeLength cellPadding, OfficeThemeTableBorderMode borderMode, OfficeThemeRule headerRule, bool headerBold, OfficeAlignment numberAlignment)` [#](#member-54f499bbc7c023b9243bd2f4)

[OfficeThemeTableStyle.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L35)

Creates immutable table colors, geometry, border mode, header treatment and numeric alignment.

Parameters

**headerFill OfficeIMO.OfficeColor required**

**headerText OfficeIMO.OfficeColor required**

**banding bool required**

**bandFill OfficeIMO.OfficeColor required**

**borderColor OfficeIMO.OfficeColor required**

**borderWidth OfficeIMO.OfficeLength required**

**cellPadding OfficeIMO.OfficeLength required**

**borderMode OfficeIMO.OfficeThemeTableBorderMode required**

**headerRule OfficeIMO.OfficeThemeRule required**

**headerBold bool required**

**numberAlignment OfficeIMO.OfficeAlignment required**

## Methods

`public OfficeThemeTableStyle With(OfficeColor? headerFill = null, OfficeColor? headerText = null, bool? banding = null, OfficeColor? bandFill = null, OfficeColor? borderColor = null, OfficeLength? borderWidth = null, OfficeLength? cellPadding = null, OfficeThemeTableBorderMode? borderMode = null, OfficeThemeRule? headerRule = null, bool? headerBold = null, OfficeAlignment? numberAlignment = null)` [#](#member-8c981ae7047bdc7c1d707f0e)

[OfficeThemeTableStyle.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L53)

Returns a copy with the supplied replacements; omitted values are retained.

Parameters

**headerFill OfficeIMO.OfficeColor? = null optional**

**headerText OfficeIMO.OfficeColor? = null optional**

**banding bool? = null optional**

**bandFill OfficeIMO.OfficeColor? = null optional**

**borderColor OfficeIMO.OfficeColor? = null optional**

**borderWidth OfficeIMO.OfficeLength? = null optional**

**cellPadding OfficeIMO.OfficeLength? = null optional**

**borderMode OfficeIMO.OfficeThemeTableBorderMode? = null optional**

**headerRule OfficeIMO.OfficeThemeRule? = null optional**

**headerBold bool? = null optional**

**numberAlignment OfficeIMO.OfficeAlignment? = null optional**

Returns

`OfficeThemeTableStyle`

## 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 OfficeColor HeaderFill { get; }` [#](#property-headerfill)

[OfficeThemeTableStyle.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L6)

Gets the header background.

`public OfficeColor HeaderText { get; }` [#](#property-headertext)

[OfficeThemeTableStyle.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L8)

Gets the header text color.

`public bool Banding { get; }` [#](#property-banding)

[OfficeThemeTableStyle.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L10)

Gets whether alternating row fills are enabled.

`public OfficeColor BandFill { get; }` [#](#property-bandfill)

[OfficeThemeTableStyle.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L12)

Gets the alternating row fill.

`public OfficeColor BorderColor { get; }` [#](#property-bordercolor)

[OfficeThemeTableStyle.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L14)

Gets table border color.

`public OfficeLength BorderWidth { get; }` [#](#property-borderwidth)

[OfficeThemeTableStyle.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L16)

Gets table border width.

`public OfficeLength CellPadding { get; }` [#](#property-cellpadding)

[OfficeThemeTableStyle.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L18)

Gets padding on each cell edge.

`public OfficeThemeTableBorderMode BorderMode { get; }` [#](#property-bordermode)

[OfficeThemeTableStyle.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L20)

Gets which borders are drawn.

`public OfficeThemeRule HeaderRule { get; }` [#](#property-headerrule)

[OfficeThemeTableStyle.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L22)

Gets the rule under the header row, or [OfficeThemeRule.None](/api/core/officeimo-officethemerule/).

`public bool HeaderBold { get; }` [#](#property-headerbold)

[OfficeThemeTableStyle.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L24)

Gets whether header text is bold.

`public OfficeAlignment NumberAlignment { get; }` [#](#property-numberalignment)

[OfficeThemeTableStyle.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/7fbbd72e7c5a401b9579a484b97ed0a9a426ce11/OfficeIMO.Core/Themes/OfficeThemeTableStyle.cs#L26)

Gets the alignment of numeric cells.

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