# PdfPageBackgroundShapeFluent

The fluent methods of PdfPageBackgroundShape, 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 [PdfPageBackgroundShape](/api/pdf/officeimo-pdf-pdfpagebackgroundshape/), 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
- PdfPageBackgroundShapeFluent

Filter members 

Show inherited

## Methods

`public static PdfPageBackgroundShape FirstPageOnly(PdfPageBackgroundShape pdfPageBackgroundShape, bool value = true)` [#](#method-firstpageonly-officeimo-pdf-pdfpagebackgroundshape-boolean)

Sets [PdfPageBackgroundShape.FirstPageOnly](/api/pdf/officeimo-pdf-pdfpagebackgroundshape/): When true, the shape is drawn on the first page only, such as a title band that would otherwise sit behind body text on continuation pages.

Parameters

**pdfPageBackgroundShape OfficeIMO.Pdf.PdfPageBackgroundShape required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`PdfPageBackgroundShape` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
pdfPageBackgroundShape.FirstPageOnly = value;    pdfPageBackgroundShape.FirstPageOnly(value);
```

Shape 2 overloads

`public static PdfPageBackgroundShape Shape(PdfPageBackgroundShape pdfPageBackgroundShape, OfficeShape value)` [#](#method-shape-officeimo-pdf-pdfpagebackgroundshape-officeimo-drawing-officeshape)

Sets [PdfPageBackgroundShape.Shape](/api/pdf/officeimo-pdf-pdfpagebackgroundshape/): Shape geometry and styling. Coordinates use the page bottom-left origin.

Parameters

**pdfPageBackgroundShape OfficeIMO.Pdf.PdfPageBackgroundShape required**

The instance.

**value OfficeIMO.Drawing.OfficeShape required**

The value.

Returns

`PdfPageBackgroundShape` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
pdfPageBackgroundShape.Shape = value;    pdfPageBackgroundShape.Shape(value);
```

`public static PdfPageBackgroundShape Shape(PdfPageBackgroundShape pdfPageBackgroundShape, Action<OfficeShape> configure)` [#](#method-shape-officeimo-pdf-pdfpagebackgroundshape-action-officeimo-drawing-officeshape)

Configures [PdfPageBackgroundShape.Shape](/api/pdf/officeimo-pdf-pdfpagebackgroundshape/) in place (creating it when not set): Shape geometry and styling. Coordinates use the page bottom-left origin.

Parameters

**pdfPageBackgroundShape OfficeIMO.Pdf.PdfPageBackgroundShape required**

The instance.

**configure System.Action<OfficeIMO.Drawing.OfficeShape> required**

Configures the value.

Returns

`PdfPageBackgroundShape` The same instance.

`public static PdfPageBackgroundShape X(PdfPageBackgroundShape pdfPageBackgroundShape, OfficeLength value)` [#](#method-x-officeimo-pdf-pdfpagebackgroundshape-officeimo-officelength)

Sets [PdfPageBackgroundShape.X](/api/pdf/officeimo-pdf-pdfpagebackgroundshape/): Left position in points from the page left edge. Negative values are allowed for bleed-style decoration.

Parameters

**pdfPageBackgroundShape OfficeIMO.Pdf.PdfPageBackgroundShape required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfPageBackgroundShape` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
pdfPageBackgroundShape.X = value;    pdfPageBackgroundShape.X(value);
```

`public static PdfPageBackgroundShape Y(PdfPageBackgroundShape pdfPageBackgroundShape, OfficeLength value)` [#](#method-y-officeimo-pdf-pdfpagebackgroundshape-officeimo-officelength)

Sets [PdfPageBackgroundShape.Y](/api/pdf/officeimo-pdf-pdfpagebackgroundshape/): Bottom position in points from the page bottom edge. Negative values are allowed for bleed-style decoration.

Parameters

**pdfPageBackgroundShape OfficeIMO.Pdf.PdfPageBackgroundShape required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`PdfPageBackgroundShape` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
pdfPageBackgroundShape.Y = value;    pdfPageBackgroundShape.Y(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:6C15DF5A090538E4769D79BE026699753D591FBAAD8BE8ACBE6001EF2A9D596D -->
