API Reference

Class

PanelStyle

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf

Visual style of a panel box used by panel paragraphs.

Inheritance

  • Object
  • PanelStyle

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

Accepted by parameters

Constructors

Methods

public PanelStyle Clone() #
Returns: PanelStyle

Creates a copy of this panel style.

Properties

public Nullable<PdfColor> Background { get; set; } #

Background fill color. Set to null for no fill.

public Nullable<PdfColor> BorderColor { get; set; } #

Border color. Set to null for no border.

public Double BorderWidth { get; set; } #

Border stroke width in points.

public PdfPanelBorder TopBorder { get; set; } #

Optional top border override. When set, it overrides the uniform border for this side.

public PdfPanelBorder RightBorder { get; set; } #

Optional right border override. When set, it overrides the uniform border for this side.

public PdfPanelBorder BottomBorder { get; set; } #

Optional bottom border override. When set, it overrides the uniform border for this side.

public PdfPanelBorder LeftBorder { get; set; } #

Optional left border override. When set, it overrides the uniform border for this side.

public Double PaddingY { get; set; } #

Vertical padding inside the panel (points).

public Double PaddingX { get; set; } #

Horizontal padding inside the panel (points).

public Nullable<Double> MaxWidth { get; set; } #

Optional maximum width for the panel box (points). When set, the box can be centered or right-aligned.

public PdfAlign Align { get; set; } #

Horizontal alignment of the panel box within the content area.

public Double SpacingBefore { get; set; } #

Vertical space before the panel in the surrounding document flow, in points.

public Double SpacingAfter { get; set; } #

Vertical space after the panel in the surrounding document flow, in points.

public Boolean KeepTogether { get; set; } #

When true, the entire panel is kept on one page; otherwise it can split across pages.

public Boolean KeepWithNext { get; set; } #

When true, the panel moves to the next page when it would otherwise be separated from the following flow block.