Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

RtfPageBorders

Namespace OfficeIMO.Rtf
Assembly OfficeIMO.Rtf
Implements
IRtfCloneable
Modifiers sealed

Page border settings for a document or section.

Inheritance

  • Object
  • RtfPageBorders

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Constructors

Methods

public RtfPageBorder GetBorder(RtfPageBorderSide side) #
Returns: RtfPageBorder

Returns the page border for the requested side.

Parameters

side OfficeIMO.Rtf.RtfPageBorderSide requiredposition: 0
public RtfPageBorders SetDisplayOptions(Nullable<RtfPageBorderScope> scope = null, Nullable<Boolean> displayBehindText = null, Nullable<RtfPageBorderOffset> offsetFrom = null) #
Returns: RtfPageBorders

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

Parameters

scope System.Nullable{OfficeIMO.Rtf.RtfPageBorderScope} = null optionalposition: 0
displayBehindText System.Nullable{System.Boolean} = null optionalposition: 1
offsetFrom System.Nullable{OfficeIMO.Rtf.RtfPageBorderOffset} = null optionalposition: 2

Properties

public RtfPageBorder Top { get; set; } #

Top page border.

public RtfPageBorder Bottom { get; set; } #

Bottom page border.

public RtfPageBorder Left { get; set; } #

Left page border.

public RtfPageBorder Right { get; set; } #

Right page border.

public Boolean IncludeHeader { get; set; } #

Whether the page border surrounds the header area.

public Boolean IncludeFooter { get; set; } #

Whether the page border surrounds the footer area.

public Boolean SnapToPageBorder { get; set; } #

Whether page border edges should snap to page-border alignment.

public Nullable<RtfPageBorderScope> Scope { get; set; } #

Page range to which the border applies.

public Nullable<Boolean> DisplayBehindText { get; set; } #

Whether the page border is displayed behind document contents.

public Nullable<RtfPageBorderOffset> OffsetFrom { get; set; } #

Source edge used for border spacing.

public Boolean HasAnyValue { get; } #

Whether any page-border setting is present.