Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfPanelStyle

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
be6c300e4ab1 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.

Accepted by parameters 4

Constructors

public PdfPanelStyle() #

Methods

public PdfPanelStyle Clone() #

Creates a copy of this panel style.

Properties

public OfficeColor? Background { get; set; } #

Background fill color. Set to null for no fill.

public OfficeColor? BorderColor { get; set; } #

Border color. Set to null for no border.

public OfficeLength BorderWidth { get; set; } #

Border stroke width in points.

public OfficeLength 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 OfficeLength PaddingY { get; set; } #

Vertical padding inside the panel (points).

public bool 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 OfficeLength 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 OfficeLength PaddingX { get; set; } #

Horizontal padding inside the panel (points).

public OfficeLength LeftInset { get; set; } #

Space before the panel's left edge, relative to its containing frame. Negative values extend the frame outward.

public OfficeLength RightInset { get; set; } #

Space after the panel's right edge, relative to its containing frame. Negative values extend the frame outward.

public OfficeLength? MaxWidth { get; set; } #

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

public OfficeAlignment Align { get; set; } #

Horizontal alignment of the panel box within the content area.

public OfficeLength SpacingBefore { get; set; } #

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

public OfficeLength SpacingAfter { get; set; } #

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

public bool KeepTogether { get; set; } #

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

public bool KeepWithNext { get; set; } #

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