Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfParagraphStyleFluent

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Modifiers
static

The fluent methods of PdfParagraphStyle, 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
  • PdfParagraphStyleFluent

Methods

public static TSelf DefaultTabStopWidth<TSelf>(TSelf pdfParagraphStyle, OfficeLength? value) #

Sets PdfParagraphStyle.DefaultTabStopWidth: Physical default paragraph tab-stop width. When null the writer uses the Word-compatible half-inch default.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { DefaultTabStopWidth = value };    pdfParagraphStyle.DefaultTabStopWidth(value);
public static TSelf FirstLineIndent<TSelf>(TSelf pdfParagraphStyle, OfficeLength value) #

Sets PdfParagraphStyle.FirstLineIndent: Physical additional indent for the first line. Negative values create a hanging indent relative to PdfParagraphStyle.LeftIndent.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { FirstLineIndent = value };    pdfParagraphStyle.FirstLineIndent(value);
public static TSelf FontSize<TSelf>(TSelf pdfParagraphStyle, OfficeLength? value) #

Sets PdfParagraphStyle.FontSize: Physical fallback font size and empty-line font size. When null the writer uses the current default font size.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { FontSize = value };    pdfParagraphStyle.FontSize(value);
public static TSelf JustificationMode<TSelf>(TSelf pdfParagraphStyle, PdfJustificationMode value) #

Sets PdfParagraphStyle.JustificationMode: Expandable boundaries when the paragraph uses OfficeAlignment.Justify. The default expands word separators.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
value OfficeIMO.Pdf.PdfJustificationMode required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfParagraphStyle { JustificationMode = value };    pdfParagraphStyle.JustificationMode(value);
public static TSelf JustifyExplicitLineBreaks<TSelf>(TSelf pdfParagraphStyle, bool value = true) #

Sets PdfParagraphStyle.JustifyExplicitLineBreaks: When true, a justified paragraph also expands lines ending with an explicit line break. The default retains natural spacing on those lines.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { JustifyExplicitLineBreaks = value };    pdfParagraphStyle.JustifyExplicitLineBreaks(value);
public static TSelf JustifyLastLine<TSelf>(TSelf pdfParagraphStyle, bool value = true) #

Sets PdfParagraphStyle.JustifyLastLine: When true, a justified paragraph also expands its final line. The default retains natural spacing on that line.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { JustifyLastLine = value };    pdfParagraphStyle.JustifyLastLine(value);
public static TSelf KeepTogether<TSelf>(TSelf pdfParagraphStyle, bool value = true) #

Sets PdfParagraphStyle.KeepTogether: When true, the paragraph starts on a new page instead of splitting across pages.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { KeepTogether = value };    pdfParagraphStyle.KeepTogether(value);
public static TSelf KeepWithNext<TSelf>(TSelf pdfParagraphStyle, bool value = true) #

Sets PdfParagraphStyle.KeepWithNext: When true, the paragraph moves to the next page when it would otherwise be separated from the following paragraph.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { KeepWithNext = value };    pdfParagraphStyle.KeepWithNext(value);
public static TSelf LeftIndent<TSelf>(TSelf pdfParagraphStyle, OfficeLength value) #

Sets PdfParagraphStyle.LeftIndent: Physical offset from the left edge of the paragraph frame. Negative values extend text into the left margin.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { LeftIndent = value };    pdfParagraphStyle.LeftIndent(value);
public static TSelf LineHeight<TSelf>(TSelf pdfParagraphStyle, double? value) #

Sets PdfParagraphStyle.LineHeight: Line advance multiplier relative to the paragraph font size. Used when PdfParagraphStyle.LineSpacing is null. When null the writer uses the default line height.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
value double? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Pdf.PdfParagraphStyle { LineHeight = value };    pdfParagraphStyle.LineHeight(value);
public static TSelf LineSpacing<TSelf>(TSelf pdfParagraphStyle, PdfLineSpacing? value) #

Sets PdfParagraphStyle.LineSpacing: Explicit line spacing. When set, this overrides PdfParagraphStyle.LineHeight.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
value OfficeIMO.Pdf.PdfLineSpacing? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Pdf.PdfParagraphStyle { LineSpacing = value };    pdfParagraphStyle.LineSpacing(value);
public static TSelf MinimumOrphanLines<TSelf>(TSelf pdfParagraphStyle, int value) #

Sets PdfParagraphStyle.MinimumOrphanLines: Minimum number of paragraph lines kept at the bottom of a page when the paragraph splits. Zero uses the two-line default when PdfParagraphStyle.WidowControl is enabled, or disables this constraint otherwise.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
value int required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfParagraphStyle { MinimumOrphanLines = value };    pdfParagraphStyle.MinimumOrphanLines(value);
public static TSelf MinimumWidowLines<TSelf>(TSelf pdfParagraphStyle, int value) #

Sets PdfParagraphStyle.MinimumWidowLines: Minimum number of paragraph lines carried to the top of the following page when the paragraph splits. Zero uses the two-line default when PdfParagraphStyle.WidowControl is enabled, or disables this constraint otherwise.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
value int required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Pdf.PdfParagraphStyle { MinimumWidowLines = value };    pdfParagraphStyle.MinimumWidowLines(value);
public static TSelf RightIndent<TSelf>(TSelf pdfParagraphStyle, OfficeLength value) #

Sets PdfParagraphStyle.RightIndent: Physical offset from the right edge of the paragraph frame. Negative values extend text into the right margin.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { RightIndent = value };    pdfParagraphStyle.RightIndent(value);
public static TSelf SpacingAfter<TSelf>(TSelf pdfParagraphStyle, OfficeLength? value) #

Sets PdfParagraphStyle.SpacingAfter: Physical space after the paragraph. When null the writer uses the default paragraph spacing.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { SpacingAfter = value };    pdfParagraphStyle.SpacingAfter(value);
public static TSelf SpacingBefore<TSelf>(TSelf pdfParagraphStyle, OfficeLength value) #

Sets PdfParagraphStyle.SpacingBefore: Physical space before the paragraph.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { SpacingBefore = value };    pdfParagraphStyle.SpacingBefore(value);
public static TSelf TabStops<TSelf>(TSelf pdfParagraphStyle, IEnumerable<PdfTabStop> items) #

Adds items to PdfParagraphStyle.TabStops: Explicit physical paragraph tab stops relative to the paragraph text frame.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
items System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfTabStop> required
The items, in order.

Returns

TSelf The same instance.
public static TSelf TabStop<TSelf>(TSelf pdfParagraphStyle, PdfTabStop item) #

Adds an item to PdfParagraphStyle.TabStops: Explicit physical paragraph tab stops relative to the paragraph text frame.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
item OfficeIMO.Pdf.PdfTabStop required
The item.

Returns

TSelf The same instance.
public static TSelf TextWhitespaceMode<TSelf>(TSelf pdfParagraphStyle, PdfTextWhitespaceMode? value) #

Sets PdfParagraphStyle.TextWhitespaceMode: Overrides document whitespace handling for this paragraph. Null uses the document setting.

Type Parameters

TSelf

Parameters

pdfParagraphStyle TSelf required
The instance.
value OfficeIMO.Pdf.PdfTextWhitespaceMode? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                  // C# fluent
new global::OfficeIMO.Pdf.PdfParagraphStyle { TextWhitespaceMode = value };    pdfParagraphStyle.TextWhitespaceMode(value);
public static TSelf WidowControl<TSelf>(TSelf pdfParagraphStyle, bool value = true) #

Sets PdfParagraphStyle.WidowControl: When true, paragraph page splits avoid single-line widows and orphans where the page frame allows it.

Type Parameters

TSelf

Parameters

pdfParagraphStyle 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.PdfParagraphStyle { WidowControl = value };    pdfParagraphStyle.WidowControl(value);