# RtfPageBordersFluent

The fluent methods of RtfPageBorders, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfPageBorders](/api/rtf/officeimo-rtf-rtfpageborders/), 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
- RtfPageBordersFluent

Filter members 

Show inherited

## Methods

`public static RtfPageBorders Bottom(RtfPageBorders rtfPageBorders, Action<RtfPageBorder> configure)` [#](#method-bottom-officeimo-rtf-rtfpageborders-action-officeimo-rtf-rtfpageborder)

Configures [RtfPageBorders.Bottom](/api/rtf/officeimo-rtf-rtfpageborders/) in place: Bottom page border.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfPageBorder> required**

Configures the value.

Returns

`RtfPageBorders` The same instance.

`public static RtfPageBorders DisplayBehindText(RtfPageBorders rtfPageBorders, bool? value = true)` [#](#method-displaybehindtext-officeimo-rtf-rtfpageborders-nullable-system-boolean)

Sets [RtfPageBorders.DisplayBehindText](/api/rtf/officeimo-rtf-rtfpageborders/): Whether the page border is displayed behind document contents.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`RtfPageBorders` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Rtf.RtfPageBorders { DisplayBehindText = value };    rtfPageBorders.DisplayBehindText(value);
```

`public static RtfPageBorders DisplayOptions(RtfPageBorders rtfPageBorders, RtfPageBorderScope? scope = null, bool? displayBehindText = null, RtfPageBorderOffset? offsetFrom = null)` [#](#method-displayoptions-officeimo-rtf-rtfpageborders-nullable-officeimo-rtf-rtfpageborderscope-nullable-system-boolean-nullable-officeimo-rtf-rtfpageborderoffset)

Sets page-border display options encoded by RTF \pgbrdropt.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**scope OfficeIMO.Rtf.RtfPageBorderScope? = null optional**

The value.

**displayBehindText bool? = null optional**

The value.

**offsetFrom OfficeIMO.Rtf.RtfPageBorderOffset? = null optional**

The value.

Returns

`RtfPageBorders` The same instance.

`public static RtfPageBorders IncludeFooter(RtfPageBorders rtfPageBorders, bool value = true)` [#](#method-includefooter-officeimo-rtf-rtfpageborders-boolean)

Sets [RtfPageBorders.IncludeFooter](/api/rtf/officeimo-rtf-rtfpageborders/): Whether the page border surrounds the footer area.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfPageBorders` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfPageBorders { IncludeFooter = value };    rtfPageBorders.IncludeFooter(value);
```

`public static RtfPageBorders IncludeHeader(RtfPageBorders rtfPageBorders, bool value = true)` [#](#method-includeheader-officeimo-rtf-rtfpageborders-boolean)

Sets [RtfPageBorders.IncludeHeader](/api/rtf/officeimo-rtf-rtfpageborders/): Whether the page border surrounds the header area.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfPageBorders` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfPageBorders { IncludeHeader = value };    rtfPageBorders.IncludeHeader(value);
```

`public static RtfPageBorders Left(RtfPageBorders rtfPageBorders, Action<RtfPageBorder> configure)` [#](#method-left-officeimo-rtf-rtfpageborders-action-officeimo-rtf-rtfpageborder)

Configures [RtfPageBorders.Left](/api/rtf/officeimo-rtf-rtfpageborders/) in place: Left page border.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfPageBorder> required**

Configures the value.

Returns

`RtfPageBorders` The same instance.

`public static RtfPageBorders OffsetFrom(RtfPageBorders rtfPageBorders, RtfPageBorderOffset? value)` [#](#method-offsetfrom-officeimo-rtf-rtfpageborders-nullable-officeimo-rtf-rtfpageborderoffset)

Sets [RtfPageBorders.OffsetFrom](/api/rtf/officeimo-rtf-rtfpageborders/): Source edge used for border spacing.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**value OfficeIMO.Rtf.RtfPageBorderOffset? required**

The value.

Returns

`RtfPageBorders` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Rtf.RtfPageBorders { OffsetFrom = value };    rtfPageBorders.OffsetFrom(value);
```

`public static RtfPageBorders Right(RtfPageBorders rtfPageBorders, Action<RtfPageBorder> configure)` [#](#method-right-officeimo-rtf-rtfpageborders-action-officeimo-rtf-rtfpageborder)

Configures [RtfPageBorders.Right](/api/rtf/officeimo-rtf-rtfpageborders/) in place: Right page border.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfPageBorder> required**

Configures the value.

Returns

`RtfPageBorders` The same instance.

`public static RtfPageBorders Scope(RtfPageBorders rtfPageBorders, RtfPageBorderScope? value)` [#](#method-scope-officeimo-rtf-rtfpageborders-nullable-officeimo-rtf-rtfpageborderscope)

Sets [RtfPageBorders.Scope](/api/rtf/officeimo-rtf-rtfpageborders/): Page range to which the border applies.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**value OfficeIMO.Rtf.RtfPageBorderScope? required**

The value.

Returns

`RtfPageBorders` The same instance.

Examples

```csharp
// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Rtf.RtfPageBorders { Scope = value };    rtfPageBorders.Scope(value);
```

`public static RtfPageBorders SnapToPageBorder(RtfPageBorders rtfPageBorders, bool value = true)` [#](#method-snaptopageborder-officeimo-rtf-rtfpageborders-boolean)

Sets [RtfPageBorders.SnapToPageBorder](/api/rtf/officeimo-rtf-rtfpageborders/): Whether page border edges should snap to page-border alignment.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`RtfPageBorders` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Rtf.RtfPageBorders { SnapToPageBorder = value };    rtfPageBorders.SnapToPageBorder(value);
```

`public static RtfPageBorders Top(RtfPageBorders rtfPageBorders, Action<RtfPageBorder> configure)` [#](#method-top-officeimo-rtf-rtfpageborders-action-officeimo-rtf-rtfpageborder)

Configures [RtfPageBorders.Top](/api/rtf/officeimo-rtf-rtfpageborders/) in place: Top page border.

Parameters

**rtfPageBorders OfficeIMO.Rtf.RtfPageBorders required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfPageBorder> required**

Configures the value.

Returns

`RtfPageBorders` 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:FC3731B013FBFF87AACAE956FD0956BB9B683CA2774CC5975C394CF95653D4A0 -->
