Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfRowStyle

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
sealed
Attributes
Fluent

Describes reusable layout rhythm for row/column blocks.

Inheritance

  • object
  • PdfRowStyle

Usage

Explore 41 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 24

Constructors

public PdfRowStyle() #

Methods

public PdfRowStyle Clone() #

Creates a copy of this row style.

Properties

public OfficeLength? Gap { get; set; } #

Horizontal gutter between row columns, in points. When null the row uses its explicit gap or the built-in Word-like gutter.

public OfficeLength SpacingBefore { get; set; } #

Vertical space before the row, in points.

public OfficeLength SpacingAfter { get; set; } #

Vertical space after the row, in points.

public OfficeColor? ColumnSeparatorColor { get; set; } #

Optional vertical separator color drawn between row columns.

public OfficeLength ColumnSeparatorWidth { get; set; } #

Vertical separator line width, in points. A non-positive width disables separator drawing.

public bool KeepTogether { get; set; } #

When true, the row moves to the next page instead of splitting across pages.

public bool KeepWithNext { get; set; } #

When true, the row moves with the first visible part of the following block when they fit together.

Fields

public static readonly OfficeLength DefaultGap #

Built-in gutter used for multi-column rows when neither the row nor a default row style specifies one.

Extension Methods

public static PdfRowStyle ColumnSeparatorColor(PdfRowStyle pdfRowStyle, OfficeColor? value) #

Sets PdfRowStyle.ColumnSeparatorColor: Optional vertical separator color drawn between row columns.

Parameters

pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required
The instance.
value OfficeIMO.OfficeColor? required
The value.

Returns

PdfRowStyle The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { ColumnSeparatorColor = value };    pdfRowStyle.ColumnSeparatorColor(value);
public static PdfRowStyle ColumnSeparatorWidth(PdfRowStyle pdfRowStyle, OfficeLength value) #

Sets PdfRowStyle.ColumnSeparatorWidth: Vertical separator line width, in points. A non-positive width disables separator drawing.

Parameters

pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

PdfRowStyle The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { ColumnSeparatorWidth = value };    pdfRowStyle.ColumnSeparatorWidth(value);
public static PdfRowStyle Gap(PdfRowStyle pdfRowStyle, OfficeLength? value) #

Sets PdfRowStyle.Gap: Horizontal gutter between row columns, in points. When null the row uses its explicit gap or the built-in Word-like gutter.

Parameters

pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required
The instance.
value OfficeIMO.OfficeLength? required
The value.

Returns

PdfRowStyle The same instance.

Examples

// C# initializer or property                             // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { Gap = value };    pdfRowStyle.Gap(value);
public static PdfRowStyle KeepTogether(PdfRowStyle pdfRowStyle, bool value = true) #

Sets PdfRowStyle.KeepTogether: When true, the row moves to the next page instead of splitting across pages.

Parameters

pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfRowStyle The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { KeepTogether = value };    pdfRowStyle.KeepTogether(value);
public static PdfRowStyle KeepWithNext(PdfRowStyle pdfRowStyle, bool value = true) #

Sets PdfRowStyle.KeepWithNext: When true, the row moves with the first visible part of the following block when they fit together.

Parameters

pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required
The instance.
value bool = true optional
The value; true when omitted.

Returns

PdfRowStyle The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { KeepWithNext = value };    pdfRowStyle.KeepWithNext(value);
public static PdfRowStyle SpacingAfter(PdfRowStyle pdfRowStyle, OfficeLength value) #

Sets PdfRowStyle.SpacingAfter: Vertical space after the row, in points.

Parameters

pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

PdfRowStyle The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { SpacingAfter = value };    pdfRowStyle.SpacingAfter(value);
public static PdfRowStyle SpacingBefore(PdfRowStyle pdfRowStyle, OfficeLength value) #

Sets PdfRowStyle.SpacingBefore: Vertical space before the row, in points.

Parameters

pdfRowStyle OfficeIMO.Pdf.PdfRowStyle required
The instance.
value OfficeIMO.OfficeLength required
The value.

Returns

PdfRowStyle The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Pdf.PdfRowStyle { SpacingBefore = value };    pdfRowStyle.SpacingBefore(value);