# PdfPanelBorder

Describes one side of a panel border.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfPanelBorder.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPanelBorder.cs#L7)

**Modifiers**

sealed

Describes one side of a panel border.

## Inheritance

- object
- PdfPanelBorder

## Usage

Explore 5 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 5

- Method [PdfPanelBorder.Clone](/api/pdf/officeimo-pdf-pdfpanelborder/#method-clone)
- Property [PdfPanelStyle.BottomBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/#property-bottomborder)
- Property [PdfPanelStyle.LeftBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/#property-leftborder)
- Property [PdfPanelStyle.RightBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/#property-rightborder)
- Property [PdfPanelStyle.TopBorder](/api/pdf/officeimo-pdf-pdfpanelstyle/#property-topborder)

Filter members 

Show inherited

## Constructors

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

[PdfPanelBorder.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPanelBorder.cs#L7)

## Methods

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

[PdfPanelBorder.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPanelBorder.cs#L41)

Creates a copy of this panel border.

Returns

`PdfPanelBorder`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

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

[PdfPanelBorder.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPanelBorder.cs#L11)

Border color. Set to null for no border on this side.

`public OfficeLength Width { get; set; }` [#](#property-width)

[PdfPanelBorder.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPanelBorder.cs#L15)

Border stroke width in points.

`public OfficeLength Offset { get; set; }` [#](#property-offset)

[PdfPanelBorder.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfPanelBorder.cs#L31)

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.

<!-- PowerForge markdown artifact sha256:3D6B471DF9B8982B2411F485B6FC18D195216F348506B4B987EB584546F74030 -->
