# PdfRowStyle

Describes reusable layout rhythm for row/column blocks.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[PdfRowStyle.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L63)

**Modifiers**

sealed

**Attributes**

`Fluent`

Describes reusable layout rhythm for row/column blocks.

## Inheritance

- object
- PdfRowStyle

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Fillable equipment inspection](/showcase/pdf-equipment-inspection/) Sample
  
  Create a PDF form with named text fields, checkboxes and a disposition dropdown for an equipment return workflow. Includes runnable C# source.

## Usage

Explore 41 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 17

- Property [PdfCreateOptions.DefaultRowStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#property-defaultrowstyle)
- Extension method [PdfRowStyle.ColumnSeparatorColor](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-columnseparatorcolor-officeimo-pdf-pdfrowstyle-nullable-officeimo-officecolor)
- Extension method [PdfRowStyle.ColumnSeparatorWidth](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-columnseparatorwidth-officeimo-pdf-pdfrowstyle-officeimo-officelength)
- Extension method [PdfRowStyle.Gap](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-gap-officeimo-pdf-pdfrowstyle-nullable-officeimo-officelength)
- Extension method [PdfRowStyle.KeepTogether](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-keeptogether-officeimo-pdf-pdfrowstyle-boolean)
- Extension method [PdfRowStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-keepwithnext-officeimo-pdf-pdfrowstyle-boolean)
- Extension method [PdfRowStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-spacingafter-officeimo-pdf-pdfrowstyle-officeimo-officelength)
- Extension method [PdfRowStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-spacingbefore-officeimo-pdf-pdfrowstyle-officeimo-officelength)
- Method [PdfRowStyle.Clone](/api/pdf/officeimo-pdf-pdfrowstyle/#method-clone)
- Method [PdfRowStyleFluent.ColumnSeparatorColor](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-columnseparatorcolor-officeimo-pdf-pdfrowstyle-nullable-officeimo-officecolor)
- Method [PdfRowStyleFluent.ColumnSeparatorWidth](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-columnseparatorwidth-officeimo-pdf-pdfrowstyle-officeimo-officelength)
- Method [PdfRowStyleFluent.Gap](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-gap-officeimo-pdf-pdfrowstyle-nullable-officeimo-officelength)
- Method [PdfRowStyleFluent.KeepTogether](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-keeptogether-officeimo-pdf-pdfrowstyle-boolean)
- Method [PdfRowStyleFluent.KeepWithNext](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-keepwithnext-officeimo-pdf-pdfrowstyle-boolean)
- Method [PdfRowStyleFluent.SpacingAfter](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-spacingafter-officeimo-pdf-pdfrowstyle-officeimo-officelength)
- Method [PdfRowStyleFluent.SpacingBefore](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-spacingbefore-officeimo-pdf-pdfrowstyle-officeimo-officelength)
- Property [PdfTheme.RowStyle](/api/pdf/officeimo-pdf-pdftheme/#property-rowstyle)

### Accepted by parameters 24

- Extension method [PdfCreateOptions.DefaultRowStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#extension-defaultrowstyle-officeimo-pdf-pdfcreateoptions-action-officeimo-pdf-pdfrowstyle) parameter `configure`
- Extension method [PdfCreateOptions.DefaultRowStyle](/api/pdf/officeimo-pdf-pdfcreateoptions/#extension-defaultrowstyle-officeimo-pdf-pdfcreateoptions-officeimo-pdf-pdfrowstyle) parameter `value`
- Method [PdfCreateOptionsFluent.DefaultRowStyle](/api/pdf/officeimo-pdf-pdfcreateoptionsfluent/#method-defaultrowstyle-officeimo-pdf-pdfcreateoptions-action-officeimo-pdf-pdfrowstyle) parameter `configure`
- Method [PdfCreateOptionsFluent.DefaultRowStyle](/api/pdf/officeimo-pdf-pdfcreateoptionsfluent/#method-defaultrowstyle-officeimo-pdf-pdfcreateoptions-officeimo-pdf-pdfrowstyle) parameter `value`
- Method [PdfPageBuilder.DefaultRowStyle](/api/pdf/officeimo-pdf-pdfpagebuilder/#method-defaultrowstyle-officeimo-pdf-pdfrowstyle) parameter `style`
- Method [PdfRowBuilder.Style](/api/pdf/officeimo-pdf-pdfrowbuilder/#method-style-officeimo-pdf-pdfrowstyle) parameter `style`
- Extension method [PdfRowStyle.ColumnSeparatorColor](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-columnseparatorcolor-officeimo-pdf-pdfrowstyle-nullable-officeimo-officecolor) parameter `pdfRowStyle`
- Extension method [PdfRowStyle.ColumnSeparatorWidth](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-columnseparatorwidth-officeimo-pdf-pdfrowstyle-officeimo-officelength) parameter `pdfRowStyle`
- Extension method [PdfRowStyle.Gap](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-gap-officeimo-pdf-pdfrowstyle-nullable-officeimo-officelength) parameter `pdfRowStyle`
- Extension method [PdfRowStyle.KeepTogether](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-keeptogether-officeimo-pdf-pdfrowstyle-boolean) parameter `pdfRowStyle`
- Extension method [PdfRowStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-keepwithnext-officeimo-pdf-pdfrowstyle-boolean) parameter `pdfRowStyle`
- Extension method [PdfRowStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-spacingafter-officeimo-pdf-pdfrowstyle-officeimo-officelength) parameter `pdfRowStyle`
- Extension method [PdfRowStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfrowstyle/#extension-spacingbefore-officeimo-pdf-pdfrowstyle-officeimo-officelength) parameter `pdfRowStyle`
- Method [PdfRowStyleFluent.ColumnSeparatorColor](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-columnseparatorcolor-officeimo-pdf-pdfrowstyle-nullable-officeimo-officecolor) parameter `pdfRowStyle`
- Method [PdfRowStyleFluent.ColumnSeparatorWidth](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-columnseparatorwidth-officeimo-pdf-pdfrowstyle-officeimo-officelength) parameter `pdfRowStyle`
- Method [PdfRowStyleFluent.Gap](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-gap-officeimo-pdf-pdfrowstyle-nullable-officeimo-officelength) parameter `pdfRowStyle`
- Method [PdfRowStyleFluent.KeepTogether](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-keeptogether-officeimo-pdf-pdfrowstyle-boolean) parameter `pdfRowStyle`
- Method [PdfRowStyleFluent.KeepWithNext](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-keepwithnext-officeimo-pdf-pdfrowstyle-boolean) parameter `pdfRowStyle`
- Method [PdfRowStyleFluent.SpacingAfter](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-spacingafter-officeimo-pdf-pdfrowstyle-officeimo-officelength) parameter `pdfRowStyle`
- Method [PdfRowStyleFluent.SpacingBefore](/api/pdf/officeimo-pdf-pdfrowstylefluent/#method-spacingbefore-officeimo-pdf-pdfrowstyle-officeimo-officelength) parameter `pdfRowStyle`
- Extension method [PdfTheme.RowStyle](/api/pdf/officeimo-pdf-pdftheme/#extension-rowstyle-officeimo-pdf-pdftheme-action-officeimo-pdf-pdfrowstyle) parameter `configure`
- Extension method [PdfTheme.RowStyle](/api/pdf/officeimo-pdf-pdftheme/#extension-rowstyle-officeimo-pdf-pdftheme-officeimo-pdf-pdfrowstyle) parameter `value`
- Method [PdfThemeFluent.RowStyle](/api/pdf/officeimo-pdf-pdfthemefluent/#method-rowstyle-officeimo-pdf-pdftheme-action-officeimo-pdf-pdfrowstyle) parameter `configure`
- Method [PdfThemeFluent.RowStyle](/api/pdf/officeimo-pdf-pdfthemefluent/#method-rowstyle-officeimo-pdf-pdftheme-officeimo-pdf-pdfrowstyle) parameter `value`

Filter members 

Show inherited

## Constructors

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

## Methods

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

[PdfRowStyle.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L63)

Creates a copy of this row style.

Returns

`PdfRowStyle`

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

[PdfRowStyle.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L18)

Horizontal gutter between row columns, in points. When null the row uses its explicit gap or the built-in Word-like gutter.

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

[PdfRowStyle.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L27)

Vertical space before the row, in points.

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

[PdfRowStyle.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L36)

Vertical space after the row, in points.

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

[PdfRowStyle.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L44)

Optional vertical separator color drawn between row columns.

`public OfficeLength ColumnSeparatorWidth { get; set; }` [#](#property-columnseparatorwidth)

[PdfRowStyle.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L48)

Vertical separator line width, in points. A non-positive width disables separator drawing.

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

[PdfRowStyle.cs:56](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L56)

When true, the row moves to the next page instead of splitting across pages.

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

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

When true, the row moves with the first visible part of the following block when they fit together.

## Fields

`public static readonly OfficeLength DefaultGap` [#](#field-defaultgap)

[PdfRowStyle.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Pdf/Model/PdfRowStyle.cs#L9)

Built-in gutter used for multi-column rows when neither the row nor a default row style specifies one.

## Extension Methods

`public static PdfRowStyle ColumnSeparatorColor(PdfRowStyle pdfRowStyle, OfficeColor? value)` [#](#extension-columnseparatorcolor-officeimo-pdf-pdfrowstyle-nullable-officeimo-officecolor)

Sets [PdfRowStyle.ColumnSeparatorColor](/api/pdf/officeimo-pdf-pdfrowstyle/): Optional vertical separator color drawn between row columns.

Parameters

**pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PdfRowStyle` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { ColumnSeparatorColor = value };    pdfRowStyle.ColumnSeparatorColor(value);
```

`public static PdfRowStyle ColumnSeparatorWidth(PdfRowStyle pdfRowStyle, OfficeLength value)` [#](#extension-columnseparatorwidth-officeimo-pdf-pdfrowstyle-officeimo-officelength)

Sets [PdfRowStyle.ColumnSeparatorWidth](/api/pdf/officeimo-pdf-pdfrowstyle/): Vertical separator line width, in points. A non-positive width disables separator drawing.

Parameters

**pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfRowStyle` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { ColumnSeparatorWidth = value };    pdfRowStyle.ColumnSeparatorWidth(value);
```

`public static PdfRowStyle Gap(PdfRowStyle pdfRowStyle, OfficeLength? value)` [#](#extension-gap-officeimo-pdf-pdfrowstyle-nullable-officeimo-officelength)

Sets [PdfRowStyle.Gap](/api/pdf/officeimo-pdf-pdfrowstyle/): Horizontal gutter between row columns, in points. When null the row uses its explicit gap or the built-in Word-like gutter.

Parameters

**pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`PdfRowStyle` The same instance.

Examples

```csharp
// C# initializer or property                             // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { Gap = value };    pdfRowStyle.Gap(value);
```

`public static PdfRowStyle KeepTogether(PdfRowStyle pdfRowStyle, bool value = true)` [#](#extension-keeptogether-officeimo-pdf-pdfrowstyle-boolean)

Sets [PdfRowStyle.KeepTogether](/api/pdf/officeimo-pdf-pdfrowstyle/): When true, the row moves to the next page instead of splitting across pages.

Parameters

**pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfRowStyle` The same instance.

Examples

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

`public static PdfRowStyle KeepWithNext(PdfRowStyle pdfRowStyle, bool value = true)` [#](#extension-keepwithnext-officeimo-pdf-pdfrowstyle-boolean)

Sets [PdfRowStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfrowstyle/): When true, the row moves with the first visible part of the following block when they fit together.

Parameters

**pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfRowStyle` The same instance.

Examples

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

`public static PdfRowStyle SpacingAfter(PdfRowStyle pdfRowStyle, OfficeLength value)` [#](#extension-spacingafter-officeimo-pdf-pdfrowstyle-officeimo-officelength)

Sets [PdfRowStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfrowstyle/): Vertical space after the row, in points.

Parameters

**pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfRowStyle` The same instance.

Examples

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

`public static PdfRowStyle SpacingBefore(PdfRowStyle pdfRowStyle, OfficeLength value)` [#](#extension-spacingbefore-officeimo-pdf-pdfrowstyle-officeimo-officelength)

Sets [PdfRowStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfrowstyle/): Vertical space before the row, in points.

Parameters

**pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfRowStyle` The same instance.

Examples

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

<!-- PowerForge markdown artifact sha256:0D2E3303BA5B111A59F501C05B414C643052B466CF885D66D478BB52BEC3FD8A -->
