Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfPanelStyleFluent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Modifiers
static

The fluent methods of PdfPanelStyle, 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
  • PdfPanelStyleFluent

Methods

public static TSelf Align<TSelf>(TSelf pdfPanelStyle, OfficeAlignment value) #

Sets PdfPanelStyle.Align: Horizontal alignment of the panel box within the content area.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeAlignment required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                 // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { Align = value };    pdfPanelStyle.Align(value);
public static TSelf Background<TSelf>(TSelf pdfPanelStyle, OfficeColor? value) #

Sets PdfPanelStyle.Background: Background fill color. Set to null for no fill.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { Background = value };    pdfPanelStyle.Background(value);
public static TSelf BorderColor<TSelf>(TSelf pdfPanelStyle, OfficeColor? value) #

Sets PdfPanelStyle.BorderColor: Border color. Set to null for no border.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { BorderColor = value };    pdfPanelStyle.BorderColor(value);
public static TSelf BorderWidth<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

Sets PdfPanelStyle.BorderWidth: Border stroke width in points.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { BorderWidth = value };    pdfPanelStyle.BorderWidth(value);
BottomBorder``1 2 overloads
public static TSelf BottomBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value) #

Sets PdfPanelStyle.BottomBorder: Optional bottom border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.Pdf.PdfPanelBorder? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { BottomBorder = value };    pdfPanelStyle.BottomBorder(value);
public static TSelf BottomBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure) #

Configures PdfPanelStyle.BottomBorder in place (creating it when not set): Optional bottom border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
configure System.Action<OfficeIMO.Pdf.PdfPanelBorder> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf CornerRadius<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

Sets PdfPanelStyle.CornerRadius: 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.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { CornerRadius = value };    pdfPanelStyle.CornerRadius(value);
public static TSelf FragmentBottomInset<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

Sets PdfPanelStyle.FragmentBottomInset: 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.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { FragmentBottomInset = value };    pdfPanelStyle.FragmentBottomInset(value);
public static TSelf KeepTogether<TSelf>(TSelf pdfPanelStyle, bool value = true) #

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

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { KeepTogether = value };    pdfPanelStyle.KeepTogether(value);
public static TSelf KeepWithNext<TSelf>(TSelf pdfPanelStyle, bool value = true) #

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

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { KeepWithNext = value };    pdfPanelStyle.KeepWithNext(value);
LeftBorder``1 2 overloads
public static TSelf LeftBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value) #

Sets PdfPanelStyle.LeftBorder: Optional left border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.Pdf.PdfPanelBorder? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { LeftBorder = value };    pdfPanelStyle.LeftBorder(value);
public static TSelf LeftBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure) #

Configures PdfPanelStyle.LeftBorder in place (creating it when not set): Optional left border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
configure System.Action<OfficeIMO.Pdf.PdfPanelBorder> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf LeftInset<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

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

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { LeftInset = value };    pdfPanelStyle.LeftInset(value);
public static TSelf MaxWidth<TSelf>(TSelf pdfPanelStyle, OfficeLength? value) #

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

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { MaxWidth = value };    pdfPanelStyle.MaxWidth(value);
public static TSelf PaddingX<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

Sets PdfPanelStyle.PaddingX: Horizontal padding inside the panel (points).

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { PaddingX = value };    pdfPanelStyle.PaddingX(value);
public static TSelf PaddingY<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

Sets PdfPanelStyle.PaddingY: Vertical padding inside the panel (points).

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { PaddingY = value };    pdfPanelStyle.PaddingY(value);
public static TSelf RepeatFragmentDecoration<TSelf>(TSelf pdfPanelStyle, bool value = true) #

Sets PdfPanelStyle.RepeatFragmentDecoration: 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.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value bool = true optional
The value; true when omitted.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { RepeatFragmentDecoration = value };    pdfPanelStyle.RepeatFragmentDecoration(value);
RightBorder``1 2 overloads
public static TSelf RightBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value) #

Sets PdfPanelStyle.RightBorder: Optional right border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.Pdf.PdfPanelBorder? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { RightBorder = value };    pdfPanelStyle.RightBorder(value);
public static TSelf RightBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure) #

Configures PdfPanelStyle.RightBorder in place (creating it when not set): Optional right border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
configure System.Action<OfficeIMO.Pdf.PdfPanelBorder> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf RightInset<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

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

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { RightInset = value };    pdfPanelStyle.RightInset(value);
public static TSelf SpacingAfter<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

Sets PdfPanelStyle.SpacingAfter: Vertical space after the panel in the surrounding document flow, in points.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { SpacingAfter = value };    pdfPanelStyle.SpacingAfter(value);
public static TSelf SpacingBefore<TSelf>(TSelf pdfPanelStyle, OfficeLength value) #

Sets PdfPanelStyle.SpacingBefore: Vertical space before the panel in the surrounding document flow, in points.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { SpacingBefore = value };    pdfPanelStyle.SpacingBefore(value);
TopBorder``1 2 overloads
public static TSelf TopBorder<TSelf>(TSelf pdfPanelStyle, PdfPanelBorder? value) #

Sets PdfPanelStyle.TopBorder: Optional top border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
value OfficeIMO.Pdf.PdfPanelBorder? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::OfficeIMO.Pdf.PdfPanelStyle { TopBorder = value };    pdfPanelStyle.TopBorder(value);
public static TSelf TopBorder<TSelf>(TSelf pdfPanelStyle, Action<PdfPanelBorder> configure) #

Configures PdfPanelStyle.TopBorder in place (creating it when not set): Optional top border override. When set, it overrides the uniform border for this side.

Type Parameters

TSelf

Parameters

pdfPanelStyle TSelf required
The instance.
configure System.Action<OfficeIMO.Pdf.PdfPanelBorder> required
Configures the value.

Returns

TSelf The same instance.