Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfPanelStyle

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 33d062b583cb with working tree changes

Visual style shared by panel paragraphs and decorated flow elements.

Inheritance

  • Object
  • PdfPanelStyle

Usage

Explore 7 API references to this type

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

Returned or exposed by 3

Accepted by parameters 4

Constructors

public PdfPanelStyle() #

Methods

public PdfPanelStyle Clone() #
Returns: PdfPanelStyle

Creates a copy of this panel style.

Properties

public PdfColor? Background { get; set; } #

Background fill color. Set to null for no fill.

public PdfColor? BorderColor { get; set; } #

Border color. Set to null for no border.

public Double BorderWidth { get; set; } #

Border stroke width in points.

public Double CornerRadius { get; set; } #

Corner radius, in points, for the panel box. Zero (the default) keeps square corners. When set, the background fill and the uniform border follow rounded corners; per-side border overrides are clipped to the rounded box so they do not overrun the curve.

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 Boolean RepeatFragmentDecoration { get; set; } #

When true, each page or column fragment repeats vertical padding and top/bottom borders. When false, top padding and border belong to the first fragment and bottom padding and border belong to the final fragment; intermediate fragments retain side borders and background.

public Double FragmentBottomInset { get; set; } #

Space reserved above the bottom boundary of every panel fragment. This leaves room at a continuation boundary without shifting the next fragment's first line downward. Closing vertical padding can occupy this reserved space. The default is zero.

public Double PaddingX { get; set; } #

Horizontal padding inside the panel (points).

public 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.