# PdfTableStyle

Describes visual and layout options for table rendering. Attach an instance to a table block or use the presets in PdfTableStyles.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfTableStyle.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L26)

Describes visual and layout options for table rendering. Attach an instance to a table block or use the presets in [PdfTableStyles](/api/pdf/officeimo-pdf-pdftablestyles/).

## Inheritance

- object
- PdfTableStyle

## Usage

Explore 25 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 16

- Property [PdfCreateOptions.DefaultTableStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-defaulttablestyle)
- Property [PdfTableOptions.Style](/api/pdf/officeimo-pdf-pdftableoptions/#property-style)
- Method [PdfTableStyle.Clone](/api/pdf/officeimo-pdf-pdftablestyle/#method-clone)
- Method [PdfTableStyles.Compact](/api/pdf/officeimo-pdf-pdftablestyles/#method-compact)
- Method [PdfTableStyles.FromWordTableStyle](/api/pdf/officeimo-pdf-pdftablestyles/#method-fromwordtablestyle-string)
- Method [PdfTableStyles.GridTable1Light](/api/pdf/officeimo-pdf-pdftablestyles/#method-gridtable1light)
- Method [PdfTableStyles.Light](/api/pdf/officeimo-pdf-pdftablestyles/#method-light)
- Method [PdfTableStyles.ListTable1Light](/api/pdf/officeimo-pdf-pdftablestyles/#method-listtable1light)
- Method [PdfTableStyles.Minimal](/api/pdf/officeimo-pdf-pdftablestyles/#method-minimal)
- Method [PdfTableStyles.PlainTable1](/api/pdf/officeimo-pdf-pdftablestyles/#method-plaintable1)
- Method [PdfTableStyles.Report](/api/pdf/officeimo-pdf-pdftablestyles/#method-report)
- Method [PdfTableStyles.RightAlignedNumbers](/api/pdf/officeimo-pdf-pdftablestyles/#method-rightalignednumbers)
- Method [PdfTableStyles.TableGrid](/api/pdf/officeimo-pdf-pdftablestyles/#method-tablegrid)
- Method [PdfTableStyles.TableGridLight](/api/pdf/officeimo-pdf-pdftablestyles/#method-tablegridlight)
- Method [PdfTableStyles.TechnicalDocument](/api/pdf/officeimo-pdf-pdftablestyles/#method-technicaldocument)
- Property [PdfTheme.TableStyle](/api/pdf/officeimo-pdf-pdftheme/#property-tablestyle)

### Accepted by parameters 9

- Method [PdfContentBuilder.AddDeferredTable](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-adddeferredtable-func-system-collections-generic-ienumerable-system-string-int32-officeimo-officealignment-officeimo-pdf-pdftablestyle) parameter `style`
- Method [PdfContentBuilder.AddKeyValueTable](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addkeyvaluetable-collections-generic-ienumerable-system-collections-generic-keyvaluepair-system-string-system-string-officeimo-officealignment-officeimo-pdf-pdftablestyle-boolean-string-string) parameter `style`
- Method [PdfContentBuilder.AddTable](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-addtable-collections-generic-ienumerable-system-string-officeimo-officealignment-officeimo-pdf-pdftablestyle) parameter `style`
- Method [PdfDocument.AddDeferredTable](/api/pdf/officeimo-pdf-pdfdocument/#method-adddeferredtable-func-system-collections-generic-ienumerable-officeimo-pdf-pdftablecell-int32-officeimo-officealignment-officeimo-pdf-pdftablestyle) parameter `style`
- Method [PdfDocument.AddKeyValueTable](/api/pdf/officeimo-pdf-pdfdocument/#method-addkeyvaluetable-collections-generic-ienumerable-system-collections-generic-keyvaluepair-system-string-system-string-officeimo-officealignment-officeimo-pdf-pdftablestyle-boolean-string-string) parameter `style`
- Method [PdfDocument.AddTable](/api/pdf/officeimo-pdf-pdfdocument/#method-addtable-collections-generic-ienumerable-system-string-officeimo-officealignment-officeimo-pdf-pdftablestyle) parameter `style`
- Method [PdfPageBuilder.DefaultTableStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaulttablestyle-officeimo-pdf-pdftablestyle) parameter `style`
- Method [PdfPageCanvas.Table](/api/pdf/officeimo-pdf-pdfpagecanvas/#method-table-collections-generic-ienumerable-officeimo-pdf-pdftablecell-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-officelength-officeimo-pdf-pdftablestyle-double-action-officeimo-pdf-pdflayoutdiagnostic) parameter `style`
- Method [PdfTableStyles.TryFromWordTableStyle](/api/pdf/officeimo-pdf-pdftablestyles/#method-tryfromwordtablestyle-string-officeimo-pdf-pdftablestyle) parameter `style`

Filter members 

Show inherited

## Constructors

`public PdfTableStyle()` [#](#constructor-ctor)

[PdfTableStyle.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L26)

## Methods

`public PdfTableStyle Clone()` [#](#method-clone)

[PdfTableStyle.cs:702](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L702)

Creates a deep copy of this style.

Returns

`PdfTableStyle`

## 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? BorderColor { get; set; }` [#](#property-bordercolor)

[PdfTableStyle.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L59)

Color of the table borders and cell grid lines. Set to null to hide borders.

`public bool ConsumesVerticalFlow { get; set; }` [#](#property-consumesverticalflow)

[PdfTableStyle.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L64)

Whether the table advances the vertical flow cursor. Set to false for a positioned table that overlays the following flow; the table is still drawn at the current cursor position.

`public PdfTablePosition? Position { get; set; }` [#](#property-position)

[PdfTableStyle.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L116)

Optional floating placement. A positioned table reserves space for surrounding text without advancing the flow cursor.

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

[PdfTableStyle.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L119)

Stroke width, as a physical length, for table borders and cell grid lines.

`public OfficeLength CornerRadius { get; set; }` [#](#property-cornerradius)

[PdfTableStyle.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L134)

Corner radius, as a physical length, for the table's outer box. Zero (the default) keeps square corners. The rounding is applied to the outer perimeter only: the top corners of the first row and the bottom corners of the last row are rounded, while interior grid lines stay straight. Cell fills and per-cell border overrides (for example an accent stripe or a top-accent bar) are clipped to the rounded outer box so they follow the curve instead of overrunning it. Most useful for single-row / single-cell tables such as callouts and stat cards.

`public OfficeColor? HeaderFill { get; set; }` [#](#property-headerfill)

[PdfTableStyle.cs:141](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L141)

Background fill color for the header row. Set to null for no fill.

`public OfficeColor? FooterFill { get; set; }` [#](#property-footerfill)

[PdfTableStyle.cs:143](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L143)

Background fill color for footer rows. Set to null for no fill.

`public OfficeColor? RowStripeFill { get; set; }` [#](#property-rowstripefill)

[PdfTableStyle.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L145)

Optional alternating row fill color (applied to every other body row). Set to null to disable.

`public OfficeColor? RowSeparatorColor { get; set; }` [#](#property-rowseparatorcolor)

[PdfTableStyle.cs:147](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L147)

Optional horizontal separator color drawn at the bottom of each table row. Set to null or zero width to disable.

`public OfficeLength RowSeparatorWidth { get; set; }` [#](#property-rowseparatorwidth)

[PdfTableStyle.cs:150](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L150)

Stroke width, as a physical length, for row separators.

`public OfficeColor? HeaderSeparatorColor { get; set; }` [#](#property-headerseparatorcolor)

[PdfTableStyle.cs:157](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L157)

Optional horizontal separator color used below header rows. Falls back to [PdfTableStyle.RowSeparatorColor](/api/pdf/officeimo-pdf-pdftablestyle/) when null.

`public OfficeLength HeaderSeparatorWidth { get; set; }` [#](#property-headerseparatorwidth)

[PdfTableStyle.cs:160](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L160)

Optional stroke width, as a physical length, used below header rows. Falls back to [PdfTableStyle.RowSeparatorWidth](/api/pdf/officeimo-pdf-pdftablestyle/) when zero.

`public OfficeColor? FooterSeparatorColor { get; set; }` [#](#property-footerseparatorcolor)

[PdfTableStyle.cs:167](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L167)

Optional horizontal separator color used above footer rows. Falls back to [PdfTableStyle.RowSeparatorColor](/api/pdf/officeimo-pdf-pdftablestyle/) when null.

`public OfficeLength FooterSeparatorWidth { get; set; }` [#](#property-footerseparatorwidth)

[PdfTableStyle.cs:170](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L170)

Optional stroke width, as a physical length, used above footer rows. Falls back to [PdfTableStyle.RowSeparatorWidth](/api/pdf/officeimo-pdf-pdftablestyle/) when zero.

`public List<OfficeColor?>? BodyColumnFills { get; set; }` [#](#property-bodycolumnfills)

[PdfTableStyle.cs:178](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L178)

Optional per-column background fills for body rows. Null or missing entries use the row fill.

`public Dictionary<ValueTuple<int, int>, OfficeColor>? CellFills { get; set; }` [#](#property-cellfills)

[PdfTableStyle.cs:183](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L183)

Optional absolute per-cell background fills keyed by zero-based row and column.

`public Dictionary<ValueTuple<int, int>, PdfCellDataBar>? CellDataBars { get; set; }` [#](#property-celldatabars)

[PdfTableStyle.cs:198](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L198)

Optional proportional bars drawn inside cells, behind cell text, keyed by zero-based row and column.

`public Dictionary<ValueTuple<int, int>, PdfCellIcon>? CellIcons { get; set; }` [#](#property-cellicons)

[PdfTableStyle.cs:223](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L223)

Optional small vector icons drawn inside cells before cell text, keyed by zero-based row and column.

`public Dictionary<ValueTuple<int, int>, PdfCellBorder>? CellBorders { get; set; }` [#](#property-cellborders)

[PdfTableStyle.cs:248](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L248)

Optional side-specific per-cell border overrides keyed by zero-based row and column.

`public Dictionary<ValueTuple<int, int>, PdfCellPadding>? CellPaddings { get; set; }` [#](#property-cellpaddings)

[PdfTableStyle.cs:270](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L270)

Optional per-cell padding overrides keyed by zero-based row and column.

`public Dictionary<ValueTuple<int, int>, OfficeAlignment>? CellAlignments { get; set; }` [#](#property-cellalignments)

[PdfTableStyle.cs:292](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L292)

Optional per-cell horizontal alignment overrides keyed by zero-based row and column.

`public Dictionary<ValueTuple<int, int>, PdfCellVerticalAlign>? CellVerticalAlignments { get; set; }` [#](#property-cellverticalalignments)

[PdfTableStyle.cs:313](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L313)

Optional per-cell vertical alignment overrides keyed by zero-based row and column.

`public OfficeColor? TextColor { get; set; }` [#](#property-textcolor)

[PdfTableStyle.cs:334](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L334)

Text color for body rows. When null the writer’s default text color is used.

`public OfficeLength? FontSize { get; set; }` [#](#property-fontsize)

[PdfTableStyle.cs:337](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L337)

Font size for body cells, as a physical length. When null the document default font size is used.

`public double? LineHeight { get; set; }` [#](#property-lineheight)

[PdfTableStyle.cs:345](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L345)

Line advance multiplier for wrapped cell text. When null the writer uses the default table line height.

`public OfficeColor? HeaderTextColor { get; set; }` [#](#property-headertextcolor)

[PdfTableStyle.cs:352](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L352)

Text color for header cells. When null the writer’s default text color is used.

`public OfficeLength? HeaderFontSize { get; set; }` [#](#property-headerfontsize)

[PdfTableStyle.cs:355](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L355)

Font size for header cells, as a physical length. When null the body table font size is used.

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

[PdfTableStyle.cs:362](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L362)

When true, header cells use the bold variant of the document font family.

`public int HeaderRowCount { get; set; }` [#](#property-headerrowcount)

[PdfTableStyle.cs:365](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L365)

Number of leading rows to render as table headers. Defaults to 1.

`public int? RepeatHeaderRowCount { get; set; }` [#](#property-repeatheaderrowcount)

[PdfTableStyle.cs:373](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L373)

Number of leading header rows to repeat on following pages. When null, all configured header rows repeat.

`public int MinimumBodyRowsOnFirstPage { get; set; }` [#](#property-minimumbodyrowsonfirstpage)

[PdfTableStyle.cs:393](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L393)

Minimum number of body rows kept with leading header rows when a table starts on a partially occupied page and the group fits on one page. Repeated header rows always stay with at least the first fragment of the following body row, so a long row splits instead of leaving the header alone at the bottom of a page. Set to zero to keep only that fragment with the header. Defaults to two.

`public int FooterRowCount { get; set; }` [#](#property-footerrowcount)

[PdfTableStyle.cs:401](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L401)

Number of trailing rows to render as table footers. Defaults to 0.

`public int MinimumBodyRowsOnLastPage { get; set; }` [#](#property-minimumbodyrowsonlastpage)

[PdfTableStyle.cs:412](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L412)

Minimum number of body rows kept with trailing footer rows on the table's final page when the group fits on one page. Set to zero to disable this pagination constraint. Defaults to two.

`public OfficeColor? FooterTextColor { get; set; }` [#](#property-footertextcolor)

[PdfTableStyle.cs:419](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L419)

Text color for footer cells. When null the writer’s default text color is used.

`public OfficeLength? FooterFontSize { get; set; }` [#](#property-footerfontsize)

[PdfTableStyle.cs:422](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L422)

Font size for footer cells, as a physical length. When null the body table font size is used.

`public bool FooterBold { get; set; }` [#](#property-footerbold)

[PdfTableStyle.cs:429](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L429)

When true, footer cells use the bold variant of the document font family.

`public OfficeLength CellPaddingX { get; set; }` [#](#property-cellpaddingx)

[PdfTableStyle.cs:432](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L432)

Horizontal padding inside each cell, as a physical length.

`public OfficeLength CellPaddingY { get; set; }` [#](#property-cellpaddingy)

[PdfTableStyle.cs:440](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L440)

Vertical padding inside each cell, as a physical length.

`public OfficeLength? CellPaddingLeft { get; set; }` [#](#property-cellpaddingleft)

[PdfTableStyle.cs:448](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L448)

Optional left padding override inside each cell, as a physical length. When null [PdfTableStyle.CellPaddingX](/api/pdf/officeimo-pdf-pdftablestyle/) is used.

`public OfficeLength? CellPaddingRight { get; set; }` [#](#property-cellpaddingright)

[PdfTableStyle.cs:456](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L456)

Optional right padding override inside each cell, as a physical length. When null [PdfTableStyle.CellPaddingX](/api/pdf/officeimo-pdf-pdftablestyle/) is used.

`public OfficeLength? CellPaddingTop { get; set; }` [#](#property-cellpaddingtop)

[PdfTableStyle.cs:464](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L464)

Optional top padding override inside each cell, as a physical length. When null [PdfTableStyle.CellPaddingY](/api/pdf/officeimo-pdf-pdftablestyle/) is used.

`public OfficeLength? CellPaddingBottom { get; set; }` [#](#property-cellpaddingbottom)

[PdfTableStyle.cs:472](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L472)

Optional bottom padding override inside each cell, as a physical length. When null [PdfTableStyle.CellPaddingY](/api/pdf/officeimo-pdf-pdftablestyle/) is used.

`public OfficeLength CellSpacing { get; set; }` [#](#property-cellspacing)

[PdfTableStyle.cs:480](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L480)

Optional spacing between adjacent table cells, as a physical length.

`public OfficeLength MinRowHeight { get; set; }` [#](#property-minrowheight)

[PdfTableStyle.cs:488](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L488)

Optional minimum row height as a physical length. Set to 0 to size rows from wrapped content.

`public List<OfficeLength?>? RowMinHeights { get; set; }` [#](#property-rowminheights)

[PdfTableStyle.cs:496](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L496)

Optional per-row minimum heights as a physical length. Null entries fall back to [PdfTableStyle.MinRowHeight](/api/pdf/officeimo-pdf-pdftablestyle/).

`public List<OfficeLength?>? FixedRowHeights { get; set; }` [#](#property-fixedrowheights)

[PdfTableStyle.cs:514](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L514)

Optional per-row fixed heights as a physical length. Null entries use content-driven row sizing and minimum row heights.

`public OfficeLength SpacingBefore { get; set; }` [#](#property-spacingbefore)

[PdfTableStyle.cs:532](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L532)

Vertical space before the table, as a physical length.

`public OfficeLength PageContinuationSpacingBefore { get; set; }` [#](#property-pagecontinuationspacingbefore)

[PdfTableStyle.cs:540](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L540)

Vertical space to reserve before table content when the same table continues on a new page.

`public string? Caption { get; set; }` [#](#property-caption)

[PdfTableStyle.cs:547](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L547)

Optional text rendered above the table grid as part of the table flow.

`public string? AlternativeText { get; set; }` [#](#property-alternativetext)

[PdfTableStyle.cs:549](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L549)

Optional alternate text attached to the tagged PDF table structure. This is not rendered visibly.

`public OfficeAlignment CaptionAlign { get; set; }` [#](#property-captionalign)

[PdfTableStyle.cs:552](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L552)

Caption alignment inside the rendered table width.

`public OfficeColor? CaptionColor { get; set; }` [#](#property-captioncolor)

[PdfTableStyle.cs:559](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L559)

Caption text color. When null the writer's default text color is used.

`public OfficeLength? CaptionFontSize { get; set; }` [#](#property-captionfontsize)

[PdfTableStyle.cs:562](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L562)

Caption font size as a physical length. When null the document default font size is used.

`public OfficeLength CaptionSpacingAfter { get; set; }` [#](#property-captionspacingafter)

[PdfTableStyle.cs:570](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L570)

Vertical space between the caption and table grid, as a physical length.

`public OfficeLength SpacingAfter { get; set; }` [#](#property-spacingafter)

[PdfTableStyle.cs:578](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L578)

Vertical space after the table, as a physical length.

`public OfficeLength RowBaselineOffset { get; set; }` [#](#property-rowbaselineoffset)

[PdfTableStyle.cs:586](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L586)

Baseline adjustment as a physical length to fine-tune text vertical placement.

`public OfficeLength? MaxWidth { get; set; }` [#](#property-maxwidth)

[PdfTableStyle.cs:594](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L594)

Optional maximum rendered table width, as a physical length. When null the table uses the available frame width.

`public OfficeLength? PreferredWidth { get; set; }` [#](#property-preferredwidth)

[PdfTableStyle.cs:605](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L605)

Optional preferred rendered table width, as a physical length. Auto-fit tables may expand beyond this width to satisfy measured content, up to [PdfTableStyle.MaxWidth](/api/pdf/officeimo-pdf-pdftablestyle/) or the available frame width.

`public bool PreserveWidth { get; set; }` [#](#property-preservewidth)

[PdfTableStyle.cs:612](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L612)

When true, the resolved table frame width is preserved even if measured columns would otherwise shrink to their content.

`public bool ShrinkTextToFit { get; set; }` [#](#property-shrinktexttofit)

[PdfTableStyle.cs:614](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L614)

When true, table rows can reduce their font size to keep cell text within the resolved cell width.

`public OfficeLength? MinimumShrinkFontSize { get; set; }` [#](#property-minimumshrinkfontsize)

[PdfTableStyle.cs:617](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L617)

Smallest font size, as a physical length, used by row or cell text shrinking. When null the writer uses 6 points.

`public List<OfficeAlignment>? Alignments { get; set; }` [#](#property-alignments)

[PdfTableStyle.cs:625](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L625)

Optional per-column alignment; defaults to Left.

`public List<PdfCellVerticalAlign>? VerticalAlignments { get; set; }` [#](#property-verticalalignments)

[PdfTableStyle.cs:632](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L632)

Optional per-column vertical alignment; defaults to Top.

`public List<OfficeLength?>? ColumnWidths { get; set; }` [#](#property-columnwidths)

[PdfTableStyle.cs:645](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L645)

Optional fixed column widths as a physical length. Null or missing entries are sized by relative weights.

`public List<OfficeLength?>? ColumnMinWidths { get; set; }` [#](#property-columnminwidths)

[PdfTableStyle.cs:653](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L653)

Optional minimum column widths as a physical length. Null or missing entries have no explicit minimum.

`public List<OfficeLength?>? ColumnMaxWidths { get; set; }` [#](#property-columnmaxwidths)

[PdfTableStyle.cs:661](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L661)

Optional maximum column widths as a physical length. Null or missing entries have no explicit maximum.

`public List<double>? ColumnWidthWeights { get; set; }` [#](#property-columnwidthweights)

[PdfTableStyle.cs:669](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L669)

Optional relative column width weights. Missing columns default to 1.0.

`public bool AutoFitColumns { get; set; }` [#](#property-autofitcolumns)

[PdfTableStyle.cs:676](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L676)

When true, flexible column widths are weighted from measured table content using OfficeIMO.Drawing.

`public bool RightAlignNumeric { get; set; }` [#](#property-rightalignnumeric)

[PdfTableStyle.cs:678](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L678)

When true, cell values that look numeric are right-aligned automatically.

`public bool KeepTogether { get; set; }` [#](#property-keeptogether)

[PdfTableStyle.cs:680](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L680)

When true, the table moves as a unit instead of splitting across pages when it fits in the page frame.

`public bool KeepWithNext { get; set; }` [#](#property-keepwithnext)

[PdfTableStyle.cs:685](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L685)

When true, the table moves with the first visible part of the following block when they fit together. A positioned table placed at the flow position moves to the next page when the following block cannot start beside it.

`public bool AllowRowBreakAcrossPages { get; set; }` [#](#property-allowrowbreakacrosspages)

[PdfTableStyle.cs:687](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L687)

When true, a single row that is taller than the page frame may split across pages by wrapped text line.

`public List<bool?>? RowAllowBreakAcrossPages { get; set; }` [#](#property-rowallowbreakacrosspages)

[PdfTableStyle.cs:690](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.cs#L690)

Optional per-row row-break overrides. Null entries fall back to [PdfTableStyle.AllowRowBreakAcrossPages](/api/pdf/officeimo-pdf-pdftablestyle/).

`public bool RepeatFooterRows { get; set; }` [#](#property-repeatfooterrows)

[PdfTableStyle.PageSummary.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.PageSummary.cs#L8)

When true, the table's trailing footer rows ([PdfTableStyle.FooterRowCount](/api/pdf/officeimo-pdf-pdftablestyle/)) close every page fragment of a table that splits across pages, not only the last one. Defaults to false.

`public PdfTablePageSummary? PageSummary { get; set; }` [#](#property-pagesummary)

[PdfTableStyle.PageSummary.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.PageSummary.cs#L14)

Optional per-page aggregates and summary rows, such as page subtotals and brought-forward or carried-forward amounts. Applies to flow tables; deferred, positioned and nested tables reject it.

`public OfficeLength LeftIndent { get; set; }` [#](#property-leftindent)

[PdfTableStyle.Placement.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.Placement.cs#L12)

Left indentation before table placement, as a physical length. Negative values extend the table into the leading margin.

`public OfficeLength HorizontalOffset { get; set; }` [#](#property-horizontaloffset)

[PdfTableStyle.Placement.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.Placement.cs#L24)

Additional horizontal translation after table alignment or floating placement, as a physical length. Positive values move the table right. This does not change its available width or vertical flow.

`public Dictionary<ValueTuple<int, int>, PdfCanvasTableHeaderScope>? CellHeaderScopes { get; set; }` [#](#property-cellheaderscopes)

[PdfTableStyle.Semantics.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfTableStyle.Semantics.cs#L9)

Additional tagged header cells keyed by zero-based table row and column. These scopes affect PDF structure only; visual header styling and repetition still follow HeaderRowCount and RepeatHeaderRowCount.

<!-- PowerForge markdown artifact sha256:490D9D0AFA7C544F8DC31D59DF23DB8DA57A6EE54F3FE1B6E195AE213B334DA4 -->
