# PdfPanelBorderFluent

The fluent methods of PdfPanelBorder, 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 [PdfPanelBorder](/api/pdf/officeimo-pdf-pdfpanelborder/), 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
- PdfPanelBorderFluent

Filter members 

Show inherited

## Methods

`public static PdfPanelBorder Color(PdfPanelBorder pdfPanelBorder, OfficeColor? value)` [#](#method-color-officeimo-pdf-pdfpanelborder-nullable-officeimo-officecolor)

Sets [PdfPanelBorder.Color](/api/pdf/officeimo-pdf-pdfpanelborder/): Border color. Set to null for no border on this side.

Parameters

**pdfPanelBorder OfficeIMO.Pdf.PdfPanelBorder required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`PdfPanelBorder` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfPanelBorder { Color = value };    pdfPanelBorder.Color(value);
```

`public static PdfPanelBorder Offset(PdfPanelBorder pdfPanelBorder, OfficeLength value)` [#](#method-offset-officeimo-pdf-pdfpanelborder-officeimo-officelength)

Sets [PdfPanelBorder.Offset](/api/pdf/officeimo-pdf-pdfpanelborder/): Distance in points from the panel boundary to this border's stroke center. Positive values move the stroke outward; negative values move it inward. This affects painting without changing the panel's content width or padding.

Parameters

**pdfPanelBorder OfficeIMO.Pdf.PdfPanelBorder required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfPanelBorder` The same instance.

Examples

```csharp
// C# initializer or property                                   // C# fluent
new global::OfficeIMO.Pdf.PdfPanelBorder { Offset = value };    pdfPanelBorder.Offset(value);
```

`public static PdfPanelBorder Width(PdfPanelBorder pdfPanelBorder, OfficeLength value)` [#](#method-width-officeimo-pdf-pdfpanelborder-officeimo-officelength)

Sets [PdfPanelBorder.Width](/api/pdf/officeimo-pdf-pdfpanelborder/): Border stroke width in points.

Parameters

**pdfPanelBorder OfficeIMO.Pdf.PdfPanelBorder required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfPanelBorder` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Pdf.PdfPanelBorder { Width = value };    pdfPanelBorder.Width(value);
```

## 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:3488CB2AEFC167ECFA28A55AAED0371059F0AA1FC55706C9D28820D6D9816FB9 -->
