API Reference

Class

WordParagraphBuilder

Namespace OfficeIMO.Word.Fluent
Assembly OfficeIMO.Word

Builder for paragraphs.

Inheritance

  • Object
  • WordParagraphBuilder

Usage

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

Accepted by parameters

Methods

public WordParagraphBuilder Align(WordParagraphAlignment alignment) #
Returns: WordParagraphBuilder

Sets the paragraph alignment.

Parameters

alignment OfficeIMO.Word.WordParagraphAlignment requiredposition: 0
Desired alignment.
public WordParagraphBuilder Bold(String text) #
Returns: WordParagraphBuilder

Appends bold text (Markdown parity helper).

Parameters

text System.String requiredposition: 0
public WordParagraphBuilder Border(Action<WordParagraphBorders> configure) #
Returns: WordParagraphBuilder

Configures borders for the paragraph.

Parameters

configure System.Action{OfficeIMO.Word.WordParagraphBorders} requiredposition: 0
Callback to configure individual border settings.
public WordParagraphBuilder Break(Nullable<WordBreakType> breakType = null) #
Returns: WordParagraphBuilder

Inserts a break into the paragraph.

Parameters

breakType System.Nullable{OfficeIMO.Word.WordBreakType} = null optionalposition: 0
Optional break type.
public WordParagraphBuilder Code(String text) #
Returns: WordParagraphBuilder

Appends inline code using a monospace font (Markdown parity helper).

Parameters

text System.String requiredposition: 0
public WordParagraphBuilder Indentation(Nullable<Double> left = null, Nullable<Double> firstLine = null, Nullable<Double> right = null) #
Returns: WordParagraphBuilder

Sets indentation values for the paragraph.

Parameters

left System.Nullable{System.Double} = null optionalposition: 0
Left indentation in points.
firstLine System.Nullable{System.Double} = null optionalposition: 1
First-line indentation in points.
right System.Nullable{System.Double} = null optionalposition: 2
Right indentation in points.
public WordParagraphBuilder InlineImage(String path, Nullable<Double> widthPx = null, Nullable<Double> heightPx = null, String alt = "") #
Returns: WordParagraphBuilder

Inserts an inline image into the paragraph.

Parameters

path System.String requiredposition: 0
Path to the image file.
widthPx System.Nullable{System.Double} = null optionalposition: 1
Optional width in pixels.
heightPx System.Nullable{System.Double} = null optionalposition: 2
Optional height in pixels.
alt System.String = "" optionalposition: 3
Alternative text.
public WordParagraphBuilder Italic(String text) #
Returns: WordParagraphBuilder

Appends italic text (Markdown parity helper).

Parameters

text System.String requiredposition: 0
public WordParagraphBuilder Justify() #
Returns: WordParagraphBuilder

Applies justified alignment to the paragraph.

public WordParagraphBuilder LineSpacing(Double points) #
Returns: WordParagraphBuilder

Sets line spacing for the paragraph.

Parameters

points System.Double requiredposition: 0
Spacing in points.
public WordParagraphBuilder Run(String text, Action<TextBuilder> configure = null) #
Returns: WordParagraphBuilder

Adds a text run to the paragraph.

Parameters

text System.String requiredposition: 0
Text to add.
configure System.Action{OfficeIMO.Word.Fluent.TextBuilder} = null optionalposition: 1
Optional configuration for the run.
public WordParagraphBuilder Shading(OfficeColor color) #
Returns: WordParagraphBuilder

Applies shading to the paragraph.

Parameters

color OfficeIMO.Drawing.OfficeColor requiredposition: 0
Fill color.
public WordParagraphBuilder SpacingAfter(Double points) #
Returns: WordParagraphBuilder

Sets spacing after the paragraph.

Parameters

points System.Double requiredposition: 0
Spacing in points.
public WordParagraphBuilder SpacingBefore(Double points) #
Returns: WordParagraphBuilder

Sets spacing before the paragraph.

Parameters

points System.Double requiredposition: 0
Spacing in points.
public WordParagraphBuilder Strike(String text) #
Returns: WordParagraphBuilder

Appends strikethrough text (Markdown parity helper).

Parameters

text System.String requiredposition: 0
Style 2 overloads
public WordParagraphBuilder Style(WordParagraphStyles style) #
Returns: WordParagraphBuilder

Applies a built-in style to the paragraph.

Parameters

style OfficeIMO.Word.WordParagraphStyles requiredposition: 0
Built-in style.
public WordParagraphBuilder Style(String styleId) #
Returns: WordParagraphBuilder

Applies a style by its identifier.

Parameters

styleId System.String requiredposition: 0
Style identifier.
public WordParagraphBuilder Tab() #
Returns: WordParagraphBuilder

Inserts a tab character.

public WordParagraphBuilder Text(String text, Action<TextBuilder> configure = null) #
Returns: WordParagraphBuilder

Adds a text run to the paragraph.

Parameters

text System.String requiredposition: 0
Text to add.
configure System.Action{OfficeIMO.Word.Fluent.TextBuilder} = null optionalposition: 1
Optional configuration for the run.
public WordParagraphBuilder Underline(String text) #
Returns: WordParagraphBuilder

Appends underlined text (Markdown parity helper).

Parameters

text System.String requiredposition: 0

Properties

public WordParagraph Paragraph { get; } #

Gets the underlying paragraph.