# PdfTableStyleFluent

The fluent methods of PdfTableStyle, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Modifiers**

static

The fluent methods of [PdfTableStyle](/api/pdf/officeimo-pdf-pdftablestyle/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- PdfTableStyleFluent

Filter members 

Show inherited

## Methods

`public static TSelf Alignments<TSelf>(TSelf pdfTableStyle, IEnumerable<OfficeAlignment> items)` [#](#method-alignments-collections-generic-ienumerable-officeimo-officealignment)

Adds items to [PdfTableStyle.Alignments](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-column alignment; defaults to Left.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeAlignment> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf Alignment<TSelf>(TSelf pdfTableStyle, OfficeAlignment item)` [#](#method-alignment-officeimo-officealignment)

Adds an item to [PdfTableStyle.Alignments](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-column alignment; defaults to Left.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.OfficeAlignment required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf AllowRowBreakAcrossPages<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-allowrowbreakacrosspages-boolean)

Sets [PdfTableStyle.AllowRowBreakAcrossPages](/api/pdf/officeimo-pdf-pdftablestyle/): When true, a single row that is taller than the page frame may split across pages by wrapped text line.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { AllowRowBreakAcrossPages = value };    pdfTableStyle.AllowRowBreakAcrossPages(value);
```

`public static TSelf AlternativeText<TSelf>(TSelf pdfTableStyle, string? value)` [#](#method-alternativetext-string)

Sets [PdfTableStyle.AlternativeText](/api/pdf/officeimo-pdf-pdftablestyle/): Optional alternate text attached to the tagged PDF table structure. This is not rendered visibly.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { AlternativeText = value };    pdfTableStyle.AlternativeText(value);
```

`public static TSelf AutoFitColumns<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-autofitcolumns-boolean)

Sets [PdfTableStyle.AutoFitColumns](/api/pdf/officeimo-pdf-pdftablestyle/): When true, flexible column widths are weighted from measured table content using OfficeIMO.Drawing.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { AutoFitColumns = value };    pdfTableStyle.AutoFitColumns(value);
```

`public static TSelf BodyColumnFills<TSelf>(TSelf pdfTableStyle, IEnumerable<OfficeColor?> items)` [#](#method-bodycolumnfills-collections-generic-ienumerable-system-nullable-officeimo-officecolor)

Adds items to [PdfTableStyle.BodyColumnFills](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-column background fills for body rows. Null or missing entries use the row fill.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeColor?> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf BodyColumnFill<TSelf>(TSelf pdfTableStyle, OfficeColor? item)` [#](#method-bodycolumnfill-nullable-officeimo-officecolor)

Adds an item to [PdfTableStyle.BodyColumnFills](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-column background fills for body rows. Null or missing entries use the row fill.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.OfficeColor? required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf BorderColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-bordercolor-nullable-officeimo-officecolor)

Sets [PdfTableStyle.BorderColor](/api/pdf/officeimo-pdf-pdftablestyle/): Color of the table borders and cell grid lines. Set to null to hide borders.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { BorderColor = value };    pdfTableStyle.BorderColor(value);
```

`public static TSelf BorderWidth<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-borderwidth-officeimo-officelength)

Sets [PdfTableStyle.BorderWidth](/api/pdf/officeimo-pdf-pdftablestyle/): Stroke width, as a physical length, for table borders and cell grid lines.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { BorderWidth = value };    pdfTableStyle.BorderWidth(value);
```

`public static TSelf CaptionAlign<TSelf>(TSelf pdfTableStyle, OfficeAlignment value)` [#](#method-captionalign-officeimo-officealignment)

Sets [PdfTableStyle.CaptionAlign](/api/pdf/officeimo-pdf-pdftablestyle/): Caption alignment inside the rendered table width.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeAlignment required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CaptionAlign = value };    pdfTableStyle.CaptionAlign(value);
```

`public static TSelf CaptionColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-captioncolor-nullable-officeimo-officecolor)

Sets [PdfTableStyle.CaptionColor](/api/pdf/officeimo-pdf-pdftablestyle/): Caption text color. When null the writer's default text color is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CaptionColor = value };    pdfTableStyle.CaptionColor(value);
```

`public static TSelf CaptionFontSize<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-captionfontsize-nullable-officeimo-officelength)

Sets [PdfTableStyle.CaptionFontSize](/api/pdf/officeimo-pdf-pdftablestyle/): Caption font size as a physical length. When null the document default font size is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CaptionFontSize = value };    pdfTableStyle.CaptionFontSize(value);
```

`public static TSelf CaptionSpacingAfter<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-captionspacingafter-officeimo-officelength)

Sets [PdfTableStyle.CaptionSpacingAfter](/api/pdf/officeimo-pdf-pdftablestyle/): Vertical space between the caption and table grid, as a physical length.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CaptionSpacingAfter = value };    pdfTableStyle.CaptionSpacingAfter(value);
```

`public static TSelf Caption<TSelf>(TSelf pdfTableStyle, string? value)` [#](#method-caption-string)

Sets [PdfTableStyle.Caption](/api/pdf/officeimo-pdf-pdftablestyle/): Optional text rendered above the table grid as part of the table flow.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { Caption = value };    pdfTableStyle.Caption(value);
```

`public static TSelf CellAlignments<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, OfficeAlignment>? value)` [#](#method-cellalignments-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-officealignment)

Sets [PdfTableStyle.CellAlignments](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-cell horizontal alignment overrides keyed by zero-based row and column.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.OfficeAlignment>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellAlignments = value };    pdfTableStyle.CellAlignments(value);
```

`public static TSelf CellBorders<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, PdfCellBorder>? value)` [#](#method-cellborders-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-pdf-pdfcellborder)

Sets [PdfTableStyle.CellBorders](/api/pdf/officeimo-pdf-pdftablestyle/): Optional side-specific per-cell border overrides keyed by zero-based row and column.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.Pdf.PdfCellBorder>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellBorders = value };    pdfTableStyle.CellBorders(value);
```

`public static TSelf CellDataBars<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, PdfCellDataBar>? value)` [#](#method-celldatabars-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-pdf-pdfcelldatabar)

Sets [PdfTableStyle.CellDataBars](/api/pdf/officeimo-pdf-pdftablestyle/): Optional proportional bars drawn inside cells, behind cell text, keyed by zero-based row and column.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.Pdf.PdfCellDataBar>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellDataBars = value };    pdfTableStyle.CellDataBars(value);
```

`public static TSelf CellFills<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, OfficeColor>? value)` [#](#method-cellfills-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-officecolor)

Sets [PdfTableStyle.CellFills](/api/pdf/officeimo-pdf-pdftablestyle/): Optional absolute per-cell background fills keyed by zero-based row and column.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.OfficeColor>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellFills = value };    pdfTableStyle.CellFills(value);
```

`public static TSelf CellHeaderScopes<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, PdfCanvasTableHeaderScope>? value)` [#](#method-cellheaderscopes-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-pdf-pdfcanvastableheaderscope)

Sets [PdfTableStyle.CellHeaderScopes](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.Pdf.PdfCanvasTableHeaderScope>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellHeaderScopes = value };    pdfTableStyle.CellHeaderScopes(value);
```

`public static TSelf CellIcons<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, PdfCellIcon>? value)` [#](#method-cellicons-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-pdf-pdfcellicon)

Sets [PdfTableStyle.CellIcons](/api/pdf/officeimo-pdf-pdftablestyle/): Optional small vector icons drawn inside cells before cell text, keyed by zero-based row and column.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.Pdf.PdfCellIcon>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellIcons = value };    pdfTableStyle.CellIcons(value);
```

`public static TSelf CellPaddingBottom<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-cellpaddingbottom-nullable-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellPaddingBottom = value };    pdfTableStyle.CellPaddingBottom(value);
```

`public static TSelf CellPaddingLeft<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-cellpaddingleft-nullable-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellPaddingLeft = value };    pdfTableStyle.CellPaddingLeft(value);
```

`public static TSelf CellPaddingRight<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-cellpaddingright-nullable-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellPaddingRight = value };    pdfTableStyle.CellPaddingRight(value);
```

`public static TSelf CellPaddings<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, PdfCellPadding>? value)` [#](#method-cellpaddings-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-pdf-pdfcellpadding)

Sets [PdfTableStyle.CellPaddings](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-cell padding overrides keyed by zero-based row and column.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.Pdf.PdfCellPadding>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellPaddings = value };    pdfTableStyle.CellPaddings(value);
```

`public static TSelf CellPaddingTop<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-cellpaddingtop-nullable-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellPaddingTop = value };    pdfTableStyle.CellPaddingTop(value);
```

`public static TSelf CellPaddingX<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-cellpaddingx-officeimo-officelength)

Sets [PdfTableStyle.CellPaddingX](/api/pdf/officeimo-pdf-pdftablestyle/): Horizontal padding inside each cell, as a physical length.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellPaddingX = value };    pdfTableStyle.CellPaddingX(value);
```

`public static TSelf CellPaddingY<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-cellpaddingy-officeimo-officelength)

Sets [PdfTableStyle.CellPaddingY](/api/pdf/officeimo-pdf-pdftablestyle/): Vertical padding inside each cell, as a physical length.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellPaddingY = value };    pdfTableStyle.CellPaddingY(value);
```

`public static TSelf CellSpacing<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-cellspacing-officeimo-officelength)

Sets [PdfTableStyle.CellSpacing](/api/pdf/officeimo-pdf-pdftablestyle/): Optional spacing between adjacent table cells, as a physical length.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellSpacing = value };    pdfTableStyle.CellSpacing(value);
```

`public static TSelf CellVerticalAlignments<TSelf>(TSelf pdfTableStyle, Dictionary<ValueTuple<int, int>, PdfCellVerticalAlign>? value)` [#](#method-cellverticalalignments-collections-generic-dictionary-system-valuetuple-system-int32-system-int32-officeimo-pdf-pdfcellverticalalign)

Sets [PdfTableStyle.CellVerticalAlignments](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-cell vertical alignment overrides keyed by zero-based row and column.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value System.Collections.Generic.Dictionary<System.ValueTuple<int, int>, OfficeIMO.Pdf.PdfCellVerticalAlign>? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CellVerticalAlignments = value };    pdfTableStyle.CellVerticalAlignments(value);
```

`public static TSelf ColumnMaxWidths<TSelf>(TSelf pdfTableStyle, IEnumerable<OfficeLength?> items)` [#](#method-columnmaxwidths-collections-generic-ienumerable-system-nullable-officeimo-officelength)

Adds items to [PdfTableStyle.ColumnMaxWidths](/api/pdf/officeimo-pdf-pdftablestyle/): Optional maximum column widths as a physical length. Null or missing entries have no explicit maximum.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeLength?> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ColumnMaxWidth<TSelf>(TSelf pdfTableStyle, OfficeLength? item)` [#](#method-columnmaxwidth-nullable-officeimo-officelength)

Adds an item to [PdfTableStyle.ColumnMaxWidths](/api/pdf/officeimo-pdf-pdftablestyle/): Optional maximum column widths as a physical length. Null or missing entries have no explicit maximum.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.OfficeLength? required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ColumnMinWidths<TSelf>(TSelf pdfTableStyle, IEnumerable<OfficeLength?> items)` [#](#method-columnminwidths-collections-generic-ienumerable-system-nullable-officeimo-officelength)

Adds items to [PdfTableStyle.ColumnMinWidths](/api/pdf/officeimo-pdf-pdftablestyle/): Optional minimum column widths as a physical length. Null or missing entries have no explicit minimum.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeLength?> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ColumnMinWidth<TSelf>(TSelf pdfTableStyle, OfficeLength? item)` [#](#method-columnminwidth-nullable-officeimo-officelength)

Adds an item to [PdfTableStyle.ColumnMinWidths](/api/pdf/officeimo-pdf-pdftablestyle/): Optional minimum column widths as a physical length. Null or missing entries have no explicit minimum.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.OfficeLength? required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ColumnWidths<TSelf>(TSelf pdfTableStyle, IEnumerable<OfficeLength?> items)` [#](#method-columnwidths-collections-generic-ienumerable-system-nullable-officeimo-officelength)

Adds items to [PdfTableStyle.ColumnWidths](/api/pdf/officeimo-pdf-pdftablestyle/): Optional fixed column widths as a physical length. Null or missing entries are sized by relative weights.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeLength?> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ColumnWidthWeights<TSelf>(TSelf pdfTableStyle, IEnumerable<double> items)` [#](#method-columnwidthweights-collections-generic-ienumerable-system-double)

Adds items to [PdfTableStyle.ColumnWidthWeights](/api/pdf/officeimo-pdf-pdftablestyle/): Optional relative column width weights. Missing columns default to 1.0.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<double> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf ColumnWidthWeight<TSelf>(TSelf pdfTableStyle, double item)` [#](#method-columnwidthweight-double)

Adds an item to [PdfTableStyle.ColumnWidthWeights](/api/pdf/officeimo-pdf-pdftablestyle/): Optional relative column width weights. Missing columns default to 1.0.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item double required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ColumnWidth<TSelf>(TSelf pdfTableStyle, OfficeLength? item)` [#](#method-columnwidth-nullable-officeimo-officelength)

Adds an item to [PdfTableStyle.ColumnWidths](/api/pdf/officeimo-pdf-pdftablestyle/): Optional fixed column widths as a physical length. Null or missing entries are sized by relative weights.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.OfficeLength? required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf ConsumesVerticalFlow<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-consumesverticalflow-boolean)

Sets [PdfTableStyle.ConsumesVerticalFlow](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { ConsumesVerticalFlow = value };    pdfTableStyle.ConsumesVerticalFlow(value);
```

`public static TSelf CornerRadius<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-cornerradius-officeimo-officelength)

Sets [PdfTableStyle.CornerRadius](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { CornerRadius = value };    pdfTableStyle.CornerRadius(value);
```

`public static TSelf FixedRowHeights<TSelf>(TSelf pdfTableStyle, IEnumerable<OfficeLength?> items)` [#](#method-fixedrowheights-collections-generic-ienumerable-system-nullable-officeimo-officelength)

Adds items to [PdfTableStyle.FixedRowHeights](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-row fixed heights as a physical length. Null entries use content-driven row sizing and minimum row heights.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeLength?> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf FixedRowHeight<TSelf>(TSelf pdfTableStyle, OfficeLength? item)` [#](#method-fixedrowheight-nullable-officeimo-officelength)

Adds an item to [PdfTableStyle.FixedRowHeights](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-row fixed heights as a physical length. Null entries use content-driven row sizing and minimum row heights.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.OfficeLength? required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf FontSize<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-fontsize-nullable-officeimo-officelength)

Sets [PdfTableStyle.FontSize](/api/pdf/officeimo-pdf-pdftablestyle/): Font size for body cells, as a physical length. When null the document default font size is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FontSize = value };    pdfTableStyle.FontSize(value);
```

`public static TSelf FooterBold<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-footerbold-boolean)

Sets [PdfTableStyle.FooterBold](/api/pdf/officeimo-pdf-pdftablestyle/): When true, footer cells use the bold variant of the document font family.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FooterBold = value };    pdfTableStyle.FooterBold(value);
```

`public static TSelf FooterFill<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-footerfill-nullable-officeimo-officecolor)

Sets [PdfTableStyle.FooterFill](/api/pdf/officeimo-pdf-pdftablestyle/): Background fill color for footer rows. Set to null for no fill.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FooterFill = value };    pdfTableStyle.FooterFill(value);
```

`public static TSelf FooterFontSize<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-footerfontsize-nullable-officeimo-officelength)

Sets [PdfTableStyle.FooterFontSize](/api/pdf/officeimo-pdf-pdftablestyle/): Font size for footer cells, as a physical length. When null the body table font size is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FooterFontSize = value };    pdfTableStyle.FooterFontSize(value);
```

`public static TSelf FooterRowCount<TSelf>(TSelf pdfTableStyle, int value)` [#](#method-footerrowcount-int32)

Sets [PdfTableStyle.FooterRowCount](/api/pdf/officeimo-pdf-pdftablestyle/): Number of trailing rows to render as table footers. Defaults to 0.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FooterRowCount = value };    pdfTableStyle.FooterRowCount(value);
```

`public static TSelf FooterSeparatorColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-footerseparatorcolor-nullable-officeimo-officecolor)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FooterSeparatorColor = value };    pdfTableStyle.FooterSeparatorColor(value);
```

`public static TSelf FooterSeparatorWidth<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-footerseparatorwidth-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FooterSeparatorWidth = value };    pdfTableStyle.FooterSeparatorWidth(value);
```

`public static TSelf FooterTextColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-footertextcolor-nullable-officeimo-officecolor)

Sets [PdfTableStyle.FooterTextColor](/api/pdf/officeimo-pdf-pdftablestyle/): Text color for footer cells. When null the writer’s default text color is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { FooterTextColor = value };    pdfTableStyle.FooterTextColor(value);
```

`public static TSelf HeaderBold<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-headerbold-boolean)

Sets [PdfTableStyle.HeaderBold](/api/pdf/officeimo-pdf-pdftablestyle/): When true, header cells use the bold variant of the document font family.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HeaderBold = value };    pdfTableStyle.HeaderBold(value);
```

`public static TSelf HeaderFill<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-headerfill-nullable-officeimo-officecolor)

Sets [PdfTableStyle.HeaderFill](/api/pdf/officeimo-pdf-pdftablestyle/): Background fill color for the header row. Set to null for no fill.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HeaderFill = value };    pdfTableStyle.HeaderFill(value);
```

`public static TSelf HeaderFontSize<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-headerfontsize-nullable-officeimo-officelength)

Sets [PdfTableStyle.HeaderFontSize](/api/pdf/officeimo-pdf-pdftablestyle/): Font size for header cells, as a physical length. When null the body table font size is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HeaderFontSize = value };    pdfTableStyle.HeaderFontSize(value);
```

`public static TSelf HeaderRowCount<TSelf>(TSelf pdfTableStyle, int value)` [#](#method-headerrowcount-int32)

Sets [PdfTableStyle.HeaderRowCount](/api/pdf/officeimo-pdf-pdftablestyle/): Number of leading rows to render as table headers. Defaults to 1.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HeaderRowCount = value };    pdfTableStyle.HeaderRowCount(value);
```

`public static TSelf HeaderSeparatorColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-headerseparatorcolor-nullable-officeimo-officecolor)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HeaderSeparatorColor = value };    pdfTableStyle.HeaderSeparatorColor(value);
```

`public static TSelf HeaderSeparatorWidth<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-headerseparatorwidth-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HeaderSeparatorWidth = value };    pdfTableStyle.HeaderSeparatorWidth(value);
```

`public static TSelf HeaderTextColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-headertextcolor-nullable-officeimo-officecolor)

Sets [PdfTableStyle.HeaderTextColor](/api/pdf/officeimo-pdf-pdftablestyle/): Text color for header cells. When null the writer’s default text color is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HeaderTextColor = value };    pdfTableStyle.HeaderTextColor(value);
```

`public static TSelf HorizontalOffset<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-horizontaloffset-officeimo-officelength)

Sets [PdfTableStyle.HorizontalOffset](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { HorizontalOffset = value };    pdfTableStyle.HorizontalOffset(value);
```

`public static TSelf KeepTogether<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-keeptogether-boolean)

Sets [PdfTableStyle.KeepTogether](/api/pdf/officeimo-pdf-pdftablestyle/): When true, the table moves as a unit instead of splitting across pages when it fits in the page frame.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { KeepTogether = value };    pdfTableStyle.KeepTogether(value);
```

`public static TSelf KeepWithNext<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-keepwithnext-boolean)

Sets [PdfTableStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { KeepWithNext = value };    pdfTableStyle.KeepWithNext(value);
```

`public static TSelf LeftIndent<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-leftindent-officeimo-officelength)

Sets [PdfTableStyle.LeftIndent](/api/pdf/officeimo-pdf-pdftablestyle/): Left indentation before table placement, as a physical length. Negative values extend the table into the leading margin.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { LeftIndent = value };    pdfTableStyle.LeftIndent(value);
```

`public static TSelf LineHeight<TSelf>(TSelf pdfTableStyle, double? value)` [#](#method-lineheight-nullable-system-double)

Sets [PdfTableStyle.LineHeight](/api/pdf/officeimo-pdf-pdftablestyle/): Line advance multiplier for wrapped cell text. When null the writer uses the default table line height.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value double? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { LineHeight = value };    pdfTableStyle.LineHeight(value);
```

`public static TSelf MaxWidth<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-maxwidth-nullable-officeimo-officelength)

Sets [PdfTableStyle.MaxWidth](/api/pdf/officeimo-pdf-pdftablestyle/): Optional maximum rendered table width, as a physical length. When null the table uses the available frame width.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { MaxWidth = value };    pdfTableStyle.MaxWidth(value);
```

`public static TSelf MinimumBodyRowsOnFirstPage<TSelf>(TSelf pdfTableStyle, int value)` [#](#method-minimumbodyrowsonfirstpage-int32)

Sets [PdfTableStyle.MinimumBodyRowsOnFirstPage](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { MinimumBodyRowsOnFirstPage = value };    pdfTableStyle.MinimumBodyRowsOnFirstPage(value);
```

`public static TSelf MinimumBodyRowsOnLastPage<TSelf>(TSelf pdfTableStyle, int value)` [#](#method-minimumbodyrowsonlastpage-int32)

Sets [PdfTableStyle.MinimumBodyRowsOnLastPage](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value int required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { MinimumBodyRowsOnLastPage = value };    pdfTableStyle.MinimumBodyRowsOnLastPage(value);
```

`public static TSelf MinimumShrinkFontSize<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-minimumshrinkfontsize-nullable-officeimo-officelength)

Sets [PdfTableStyle.MinimumShrinkFontSize](/api/pdf/officeimo-pdf-pdftablestyle/): Smallest font size, as a physical length, used by row or cell text shrinking. When null the writer uses 6 points.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { MinimumShrinkFontSize = value };    pdfTableStyle.MinimumShrinkFontSize(value);
```

`public static TSelf MinRowHeight<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-minrowheight-officeimo-officelength)

Sets [PdfTableStyle.MinRowHeight](/api/pdf/officeimo-pdf-pdftablestyle/): Optional minimum row height as a physical length. Set to 0 to size rows from wrapped content.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { MinRowHeight = value };    pdfTableStyle.MinRowHeight(value);
```

`public static TSelf PageContinuationSpacingBefore<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-pagecontinuationspacingbefore-officeimo-officelength)

Sets [PdfTableStyle.PageContinuationSpacingBefore](/api/pdf/officeimo-pdf-pdftablestyle/): Vertical space to reserve before table content when the same table continues on a new page.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { PageContinuationSpacingBefore = value };    pdfTableStyle.PageContinuationSpacingBefore(value);
```

PageSummary``1 2 overloads

`public static TSelf PageSummary<TSelf>(TSelf pdfTableStyle, PdfTablePageSummary? value)` [#](#method-pagesummary-officeimo-pdf-pdftablepagesummary)

Sets [PdfTableStyle.PageSummary](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.Pdf.PdfTablePageSummary? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { PageSummary = value };    pdfTableStyle.PageSummary(value);
```

`public static TSelf PageSummary<TSelf>(TSelf pdfTableStyle, Action<PdfTablePageSummary> configure)` [#](#method-pagesummary-action-officeimo-pdf-pdftablepagesummary)

Configures [PdfTableStyle.PageSummary](/api/pdf/officeimo-pdf-pdftablestyle/) in place (creating it when not set): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**configure System.Action<OfficeIMO.Pdf.PdfTablePageSummary> required**

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Position<TSelf>(TSelf pdfTableStyle, PdfTablePosition? value)` [#](#method-position-officeimo-pdf-pdftableposition)

Sets [PdfTableStyle.Position](/api/pdf/officeimo-pdf-pdftablestyle/): Optional floating placement. A positioned table reserves space for surrounding text without advancing the flow cursor.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.Pdf.PdfTablePosition? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { Position = value };    pdfTableStyle.Position(value);
```

`public static TSelf PreferredWidth<TSelf>(TSelf pdfTableStyle, OfficeLength? value)` [#](#method-preferredwidth-nullable-officeimo-officelength)

Sets [PdfTableStyle.PreferredWidth](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { PreferredWidth = value };    pdfTableStyle.PreferredWidth(value);
```

`public static TSelf PreserveWidth<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-preservewidth-boolean)

Sets [PdfTableStyle.PreserveWidth](/api/pdf/officeimo-pdf-pdftablestyle/): When true, the resolved table frame width is preserved even if measured columns would otherwise shrink to their content.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { PreserveWidth = value };    pdfTableStyle.PreserveWidth(value);
```

`public static TSelf RepeatFooterRows<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-repeatfooterrows-boolean)

Sets [PdfTableStyle.RepeatFooterRows](/api/pdf/officeimo-pdf-pdftablestyle/): 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.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { RepeatFooterRows = value };    pdfTableStyle.RepeatFooterRows(value);
```

`public static TSelf RepeatHeaderRowCount<TSelf>(TSelf pdfTableStyle, int? value)` [#](#method-repeatheaderrowcount-nullable-system-int32)

Sets [PdfTableStyle.RepeatHeaderRowCount](/api/pdf/officeimo-pdf-pdftablestyle/): Number of leading header rows to repeat on following pages. When null, all configured header rows repeat.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value int? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { RepeatHeaderRowCount = value };    pdfTableStyle.RepeatHeaderRowCount(value);
```

`public static TSelf RightAlignNumeric<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-rightalignnumeric-boolean)

Sets [PdfTableStyle.RightAlignNumeric](/api/pdf/officeimo-pdf-pdftablestyle/): When true, cell values that look numeric are right-aligned automatically.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { RightAlignNumeric = value };    pdfTableStyle.RightAlignNumeric(value);
```

`public static TSelf RowAllowBreakAcrossPages<TSelf>(TSelf pdfTableStyle, IEnumerable<bool?> items)` [#](#method-rowallowbreakacrosspages-collections-generic-ienumerable-system-nullable-system-boolean)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<bool?> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf RowAllowBreakAcrossPage<TSelf>(TSelf pdfTableStyle, bool? item)` [#](#method-rowallowbreakacrosspage-nullable-system-boolean)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item bool? required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf RowBaselineOffset<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-rowbaselineoffset-officeimo-officelength)

Sets [PdfTableStyle.RowBaselineOffset](/api/pdf/officeimo-pdf-pdftablestyle/): Baseline adjustment as a physical length to fine-tune text vertical placement.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { RowBaselineOffset = value };    pdfTableStyle.RowBaselineOffset(value);
```

`public static TSelf RowMinHeights<TSelf>(TSelf pdfTableStyle, IEnumerable<OfficeLength?> items)` [#](#method-rowminheights-collections-generic-ienumerable-system-nullable-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeLength?> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf RowMinHeight<TSelf>(TSelf pdfTableStyle, OfficeLength? item)` [#](#method-rowminheight-nullable-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.OfficeLength? required**

The item.

Returns

`TSelf` The same instance.

`public static TSelf RowSeparatorColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-rowseparatorcolor-nullable-officeimo-officecolor)

Sets [PdfTableStyle.RowSeparatorColor](/api/pdf/officeimo-pdf-pdftablestyle/): Optional horizontal separator color drawn at the bottom of each table row. Set to null or zero width to disable.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { RowSeparatorColor = value };    pdfTableStyle.RowSeparatorColor(value);
```

`public static TSelf RowSeparatorWidth<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-rowseparatorwidth-officeimo-officelength)

Sets [PdfTableStyle.RowSeparatorWidth](/api/pdf/officeimo-pdf-pdftablestyle/): Stroke width, as a physical length, for row separators.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { RowSeparatorWidth = value };    pdfTableStyle.RowSeparatorWidth(value);
```

`public static TSelf RowStripeFill<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-rowstripefill-nullable-officeimo-officecolor)

Sets [PdfTableStyle.RowStripeFill](/api/pdf/officeimo-pdf-pdftablestyle/): Optional alternating row fill color (applied to every other body row). Set to null to disable.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { RowStripeFill = value };    pdfTableStyle.RowStripeFill(value);
```

`public static TSelf ShrinkTextToFit<TSelf>(TSelf pdfTableStyle, bool value = true)` [#](#method-shrinktexttofit-boolean)

Sets [PdfTableStyle.ShrinkTextToFit](/api/pdf/officeimo-pdf-pdftablestyle/): When true, table rows can reduce their font size to keep cell text within the resolved cell width.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { ShrinkTextToFit = value };    pdfTableStyle.ShrinkTextToFit(value);
```

`public static TSelf SpacingAfter<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-spacingafter-officeimo-officelength)

Sets [PdfTableStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdftablestyle/): Vertical space after the table, as a physical length.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { SpacingAfter = value };    pdfTableStyle.SpacingAfter(value);
```

`public static TSelf SpacingBefore<TSelf>(TSelf pdfTableStyle, OfficeLength value)` [#](#method-spacingbefore-officeimo-officelength)

Sets [PdfTableStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdftablestyle/): Vertical space before the table, as a physical length.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { SpacingBefore = value };    pdfTableStyle.SpacingBefore(value);
```

`public static TSelf TextColor<TSelf>(TSelf pdfTableStyle, OfficeColor? value)` [#](#method-textcolor-nullable-officeimo-officecolor)

Sets [PdfTableStyle.TextColor](/api/pdf/officeimo-pdf-pdftablestyle/): Text color for body rows. When null the writer’s default text color is used.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfTableStyle { TextColor = value };    pdfTableStyle.TextColor(value);
```

`public static TSelf VerticalAlignments<TSelf>(TSelf pdfTableStyle, IEnumerable<PdfCellVerticalAlign> items)` [#](#method-verticalalignments-collections-generic-ienumerable-officeimo-pdf-pdfcellverticalalign)

Adds items to [PdfTableStyle.VerticalAlignments](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-column vertical alignment; defaults to Top.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfCellVerticalAlign> required**

The items, in order.

Returns

`TSelf` The same instance.

`public static TSelf VerticalAlignment<TSelf>(TSelf pdfTableStyle, PdfCellVerticalAlign item)` [#](#method-verticalalignment-officeimo-pdf-pdfcellverticalalign)

Adds an item to [PdfTableStyle.VerticalAlignments](/api/pdf/officeimo-pdf-pdftablestyle/): Optional per-column vertical alignment; defaults to Top.

Type Parameters

**TSelf**

Parameters

**pdfTableStyle TSelf required**

The instance.

**item OfficeIMO.Pdf.PdfCellVerticalAlign required**

The item.

Returns

`TSelf` The same instance.

## 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:F0667114BF6BB1EBEDFCCAA8D5123A1396070E68A501CE79EA50A988A419A6AC -->
