# PdfHeaderFooterShape

Describes a simple shape rendered in a page header or footer.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfHeaderFooterShape.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHeaderFooterShape.cs#L12)

**Modifiers**

sealed

Describes a simple shape rendered in a page header or footer.

## Inheritance

- object
- PdfHeaderFooterShape

## Usage

Explore 1 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.

### Accepted by parameters 1

- Method [PdfHeaderFooter.AddShape](/api/pdf/officeimo-pdf-pdfheaderfooter/#method-addshape-officeimo-pdf-pdfheaderfootershape) parameter `shape`

Filter members 

Show inherited

## Constructors

`public PdfHeaderFooterShape(OfficeShape shape, OfficeAlignment align = Left)` [#](#constructor-ctor-officeimo-drawing-officeshape-officeimo-officealignment)

[PdfHeaderFooterShape.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHeaderFooterShape.cs#L12)

Creates a header/footer shape.

Parameters

**shape OfficeIMO.Drawing.OfficeShape required**

**align OfficeIMO.OfficeAlignment = Left optional**

## 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 Width { get; }` [#](#property-width)

[PdfHeaderFooterShape.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHeaderFooterShape.cs#L20)

Shape width in PDF points.

`public OfficeLength Height { get; }` [#](#property-height)

[PdfHeaderFooterShape.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHeaderFooterShape.cs#L23)

Shape height in PDF points.

`public OfficeAlignment Align { get; }` [#](#property-align)

[PdfHeaderFooterShape.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHeaderFooterShape.cs#L26)

Horizontal placement inside the page content width.

`public OfficeShape Shape { get; }` [#](#property-shape)

[PdfHeaderFooterShape.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfHeaderFooterShape.cs#L29)

Returns a copy of the shape payload.

<!-- PowerForge markdown artifact sha256:E2780ECBF0857A6CBF6DD09DB1CD3141D353E818984FD61E9724E31D6D02E7AA -->
