# PdfPanelStyleFluent

The fluent methods of PdfPanelStyle, 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 [PdfPanelStyle](/api/pdf/officeimo-pdf-pdfpanelstyle/), 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
- PdfPanelStyleFluent

Filter members 

Show inherited

## Methods

`public static TSelf Align<TSelf>(TSelf pdfPanelStyle, OfficeAlignment value)` [#](#method-align-officeimo-officealignment)

Sets [PdfPanelStyle.Align](/api/pdf/officeimo-pdf-pdfpanelstyle/): Horizontal alignment of the panel box within the content area.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { Align = value };    pdfPanelStyle.Align(value);
```

`public static TSelf Background<TSelf>(TSelf pdfPanelStyle, OfficeColor? value)` [#](#method-background-nullable-officeimo-officecolor)

Sets [PdfPanelStyle.Background](/api/pdf/officeimo-pdf-pdfpanelstyle/): Background fill color. Set to null for no fill.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { Background = value };    pdfPanelStyle.Background(value);
```

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

Sets [PdfPanelStyle.BorderColor](/api/pdf/officeimo-pdf-pdfpanelstyle/): Border color. Set to null for no border.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { BorderColor = value };    pdfPanelStyle.BorderColor(value);
```

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

Sets [PdfPanelStyle.BorderWidth](/api/pdf/officeimo-pdf-pdfpanelstyle/): Border stroke width in points.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { BorderWidth = value };    pdfPanelStyle.BorderWidth(value);
```

BottomBorder``1 2 overloads

`public static TSelf BottomBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value)` [#](#method-bottomborder-officeimo-pdf-pdfpanelborder)

Sets [PdfPanelStyle.BottomBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/): Optional bottom border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

**value OfficeIMO.Pdf.PdfPanelBorder? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { BottomBorder = value };    pdfPanelStyle.BottomBorder(value);
```

`public static TSelf BottomBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure)` [#](#method-bottomborder-action-officeimo-pdf-pdfpanelborder)

Configures [PdfPanelStyle.BottomBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/) in place (creating it when not set): Optional bottom border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

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

Sets [PdfPanelStyle.CornerRadius](/api/pdf/officeimo-pdf-pdfpanelstyle/): Corner radius, in points, for the panel box. Zero (the default) keeps square corners. When set, the background fill and the uniform border follow rounded corners; per-side border overrides are clipped to the rounded box so they do not overrun the curve.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { CornerRadius = value };    pdfPanelStyle.CornerRadius(value);
```

`public static TSelf FragmentBottomInset<TSelf>(TSelf pdfPanelStyle, OfficeLength value)` [#](#method-fragmentbottominset-officeimo-officelength)

Sets [PdfPanelStyle.FragmentBottomInset](/api/pdf/officeimo-pdf-pdfpanelstyle/): Space reserved above the bottom boundary of every panel fragment. This leaves room at a continuation boundary without shifting the next fragment's first line downward. Closing vertical padding can occupy this reserved space. The default is zero.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { FragmentBottomInset = value };    pdfPanelStyle.FragmentBottomInset(value);
```

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

Sets [PdfPanelStyle.KeepTogether](/api/pdf/officeimo-pdf-pdfpanelstyle/): When true, the entire panel is kept on one page; otherwise it can split across pages.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { KeepTogether = value };    pdfPanelStyle.KeepTogether(value);
```

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

Sets [PdfPanelStyle.KeepWithNext](/api/pdf/officeimo-pdf-pdfpanelstyle/): When true, the panel moves to the next page when it would otherwise be separated from the following flow block.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { KeepWithNext = value };    pdfPanelStyle.KeepWithNext(value);
```

LeftBorder``1 2 overloads

`public static TSelf LeftBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value)` [#](#method-leftborder-officeimo-pdf-pdfpanelborder)

Sets [PdfPanelStyle.LeftBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/): Optional left border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

**value OfficeIMO.Pdf.PdfPanelBorder? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { LeftBorder = value };    pdfPanelStyle.LeftBorder(value);
```

`public static TSelf LeftBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure)` [#](#method-leftborder-action-officeimo-pdf-pdfpanelborder)

Configures [PdfPanelStyle.LeftBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/) in place (creating it when not set): Optional left border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf LeftInset<TSelf>(TSelf pdfPanelStyle, OfficeLength value)` [#](#method-leftinset-officeimo-officelength)

Sets [PdfPanelStyle.LeftInset](/api/pdf/officeimo-pdf-pdfpanelstyle/): Space before the panel's left edge, relative to its containing frame. Negative values extend the frame outward.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { LeftInset = value };    pdfPanelStyle.LeftInset(value);
```

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

Sets [PdfPanelStyle.MaxWidth](/api/pdf/officeimo-pdf-pdfpanelstyle/): Optional maximum width for the panel box (points). When set, the box can be centered or right-aligned.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { MaxWidth = value };    pdfPanelStyle.MaxWidth(value);
```

`public static TSelf PaddingX<TSelf>(TSelf pdfPanelStyle, OfficeLength value)` [#](#method-paddingx-officeimo-officelength)

Sets [PdfPanelStyle.PaddingX](/api/pdf/officeimo-pdf-pdfpanelstyle/): Horizontal padding inside the panel (points).

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { PaddingX = value };    pdfPanelStyle.PaddingX(value);
```

`public static TSelf PaddingY<TSelf>(TSelf pdfPanelStyle, OfficeLength value)` [#](#method-paddingy-officeimo-officelength)

Sets [PdfPanelStyle.PaddingY](/api/pdf/officeimo-pdf-pdfpanelstyle/): Vertical padding inside the panel (points).

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { PaddingY = value };    pdfPanelStyle.PaddingY(value);
```

`public static TSelf RepeatFragmentDecoration<TSelf>(TSelf pdfPanelStyle, bool value = true)` [#](#method-repeatfragmentdecoration-boolean)

Sets [PdfPanelStyle.RepeatFragmentDecoration](/api/pdf/officeimo-pdf-pdfpanelstyle/): When true, each page or column fragment repeats vertical padding and top/bottom borders. When false, top padding and border belong to the first fragment and bottom padding and border belong to the final fragment; intermediate fragments retain side borders and background.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { RepeatFragmentDecoration = value };    pdfPanelStyle.RepeatFragmentDecoration(value);
```

RightBorder``1 2 overloads

`public static TSelf RightBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value)` [#](#method-rightborder-officeimo-pdf-pdfpanelborder)

Sets [PdfPanelStyle.RightBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/): Optional right border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

**value OfficeIMO.Pdf.PdfPanelBorder? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { RightBorder = value };    pdfPanelStyle.RightBorder(value);
```

`public static TSelf RightBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure)` [#](#method-rightborder-action-officeimo-pdf-pdfpanelborder)

Configures [PdfPanelStyle.RightBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/) in place (creating it when not set): Optional right border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf RightInset<TSelf>(TSelf pdfPanelStyle, OfficeLength value)` [#](#method-rightinset-officeimo-officelength)

Sets [PdfPanelStyle.RightInset](/api/pdf/officeimo-pdf-pdfpanelstyle/): Space after the panel's right edge, relative to its containing frame. Negative values extend the frame outward.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { RightInset = value };    pdfPanelStyle.RightInset(value);
```

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

Sets [PdfPanelStyle.SpacingAfter](/api/pdf/officeimo-pdf-pdfpanelstyle/): Vertical space after the panel in the surrounding document flow, in points.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { SpacingAfter = value };    pdfPanelStyle.SpacingAfter(value);
```

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

Sets [PdfPanelStyle.SpacingBefore](/api/pdf/officeimo-pdf-pdfpanelstyle/): Vertical space before the panel in the surrounding document flow, in points.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle 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.PdfPanelStyle { SpacingBefore = value };    pdfPanelStyle.SpacingBefore(value);
```

TopBorder``1 2 overloads

`public static TSelf TopBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value)` [#](#method-topborder-officeimo-pdf-pdfpanelborder)

Sets [PdfPanelStyle.TopBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/): Optional top border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

**value OfficeIMO.Pdf.PdfPanelBorder? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { TopBorder = value };    pdfPanelStyle.TopBorder(value);
```

`public static TSelf TopBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure)` [#](#method-topborder-action-officeimo-pdf-pdfpanelborder)

Configures [PdfPanelStyle.TopBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/) in place (creating it when not set): Optional top border override. When set, it overrides the uniform border for this side.

Type Parameters

**TSelf**

Parameters

**pdfPanelStyle TSelf required**

The instance.

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

Configures the value.

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:EA654D2CBE561E48569905D34F138102A7CB041ADE16994BC38D5B3E775BDD27 -->
