Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfPageBordersFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of 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

Methods

public static RtfPageBorders Bottom(RtfPageBorders rtfPageBorders, Action<RtfPageBorder> configure) #

Configures RtfPageBorders.Bottom 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) #

Sets RtfPageBorders.DisplayBehindText: 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

// 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) #

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) #

Sets RtfPageBorders.IncludeFooter: 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

// 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) #

Sets RtfPageBorders.IncludeHeader: 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

// 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) #

Configures RtfPageBorders.Left 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) #

Sets RtfPageBorders.OffsetFrom: 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

// 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) #

Configures RtfPageBorders.Right 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) #

Sets RtfPageBorders.Scope: 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

// 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) #

Sets RtfPageBorders.SnapToPageBorder: 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

// 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) #

Configures RtfPageBorders.Top 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.