Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordParagraphFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of WordParagraph, 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
  • WordParagraphFluent

Methods

public static TSelf Alignment<TSelf>(TSelf wordParagraph, WordParagraphAlignment alignment) #

Sets the paragraph alignment.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
alignment OfficeIMO.Word.WordParagraphAlignment required
Alignment value.

Returns

TSelf The same instance.
public static TSelf AvoidWidowAndOrphanOverride<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.AvoidWidowAndOrphanOverride: Gets or sets directly authored widow/orphan control. Null restores style inheritance; false disables the control.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { AvoidWidowAndOrphanOverride = value };    wordParagraph.AvoidWidowAndOrphanOverride(value);
public static TSelf AvoidWidowAndOrphan<TSelf>(TSelf wordParagraph, bool value = true) #

Sets WordParagraph.AvoidWidowAndOrphan: Gets or sets directly authored widow and orphan control without resolving paragraph styles.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { AvoidWidowAndOrphan = value };    wordParagraph.AvoidWidowAndOrphan(value);
BackgroundColor``1 2 overloads
public static TSelf BackgroundColor<TSelf>(TSelf wordParagraph, OfficeColor color) #

Applies an exact background (run shading fill) color to the current text run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
color OfficeIMO.OfficeColor required
The background color.

Returns

TSelf The same instance.
public static TSelf BackgroundColor<TSelf>(TSelf wordParagraph, OfficeColor? value) #

Sets WordParagraph.BackgroundColor: Gets or sets the background (run shading fill) color applied to the current text run.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { BackgroundColor = value };    wordParagraph.BackgroundColor(value);
public static TSelf BiDi<TSelf>(TSelf wordParagraph, bool value = true) #

Sets WordParagraph.BiDi: Gets or sets directly authored right-to-left layout without resolving paragraph styles.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { BiDi = value };    wordParagraph.BiDi(value);
public static TSelf Bold<TSelf>(TSelf wordParagraph, bool isBold = true) #

Sets the WordParagraph.Bold property.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
isBold bool = true optional
Whether the text should be bold.

Returns

TSelf The same instance.
public static TSelf Bookmark<TSelf>(TSelf wordParagraph, Action<WordBookmark> configure) #

Configures WordParagraph.Bookmark in place: Gets the bookmark associated with this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordBookmark> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf CapsStyle<TSelf>(TSelf wordParagraph, WordCapsStyle capsStyle) #

Sets the capitalization style for the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
capsStyle OfficeIMO.Word.WordCapsStyle required
Capitalization style.

Returns

TSelf The same instance.
public static TSelf CharacterScale<TSelf>(TSelf wordParagraph, int? value) #

Sets WordParagraph.CharacterScale: Gets or sets the directly authored character width as a percentage between 1 and 600. A value of 100 restores normal width; null removes the direct value and restores style inheritance. Character height and character spacing are independent of this setting.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value int? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Word.WordParagraph { CharacterScale = value };    wordParagraph.CharacterScale(value);
public static TSelf CharacterStyleId<TSelf>(TSelf wordParagraph, string styleId) #

Sets the character style by identifier.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
styleId string required
The style identifier.

Returns

TSelf The same instance.
CharacterStyle``1 3 overloads
public static TSelf CharacterStyle<TSelf>(TSelf wordParagraph, WordStyle style) #

Applies a character style defined in this paragraph's document to the run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
style OfficeIMO.Word.WordStyle required
A character style from WordDocument.Styles.

Returns

TSelf The same instance.
public static TSelf CharacterStyle<TSelf>(TSelf wordParagraph, WordCharacterStyles style) #

Sets the character style for the run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
style OfficeIMO.Word.WordCharacterStyles required
Character style to apply.

Returns

TSelf The same instance.
public static TSelf CharacterStyle<TSelf>(TSelf wordParagraph, WordCharacterStyles? value) #

Sets WordParagraph.CharacterStyle: Gets or sets the character style applied to the run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordCharacterStyles? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Word.WordParagraph { CharacterStyle = value };    wordParagraph.CharacterStyle(value);
public static TSelf Chart<TSelf>(TSelf wordParagraph, Action<WordChart> configure) #

Configures WordParagraph.Chart in place: Gets the chart contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordChart> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf CheckBoxValue<TSelf>(TSelf wordParagraph, bool value = true) #

Sets the checked state of the paragraph's checkbox.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value bool = true optional
New checked state. True when omitted.

Returns

TSelf The same instance.
public static TSelf CheckBox<TSelf>(TSelf wordParagraph, Action<WordCheckBox> configure) #

Configures WordParagraph.CheckBox in place: Gets the checkbox contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordCheckBox> required
Configures the value.

Returns

TSelf The same instance.
Color``1 2 overloads
public static TSelf Color<TSelf>(TSelf wordParagraph, OfficeColor color) #

Sets the text color using OfficeColor.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
color OfficeIMO.OfficeColor required
The color to apply.

Returns

TSelf The same instance.
public static TSelf Color<TSelf>(TSelf wordParagraph, OfficeColor? value) #

Sets WordParagraph.Color: Gets or sets the text color using OfficeColor.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { Color = value };    wordParagraph.Color(value);
public static TSelf ComboBox<TSelf>(TSelf wordParagraph, Action<WordComboBox> configure) #

Configures WordParagraph.ComboBox in place: Gets the combo box contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordComboBox> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf ContextualSpacing<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.ContextualSpacing: Gets or sets suppression of spacing between paragraphs of the same style. Null restores style inheritance.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { ContextualSpacing = value };    wordParagraph.ContextualSpacing(value);
public static TSelf DatePicker<TSelf>(TSelf wordParagraph, Action<WordDatePicker> configure) #

Configures WordParagraph.DatePicker in place: Gets the date picker contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordDatePicker> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf DoNotCheckSpellingOrGrammar<TSelf>(TSelf wordParagraph, bool value = true) #

Sets WordParagraph.DoNotCheckSpellingOrGrammar: Gets or sets a value indicating whether spelling and grammar checks are disabled.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { DoNotCheckSpellingOrGrammar = value };    wordParagraph.DoNotCheckSpellingOrGrammar(value);
public static TSelf DoubleStrikethrough<TSelf>(TSelf wordParagraph, bool doubleStrikethrough = true) #

Enables or disables double strikethrough on the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
doubleStrikethrough bool = true optional
Whether the text should be double struck.

Returns

TSelf The same instance.
public static TSelf DropDownList<TSelf>(TSelf wordParagraph, Action<WordDropDownList> configure) #

Configures WordParagraph.DropDownList in place: Gets the dropdown list contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordDropDownList> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf Emboss<TSelf>(TSelf wordParagraph, bool isEmboss = true) #

Enables or disables emboss effect on the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
isEmboss bool = true optional
Whether the text should be embossed.

Returns

TSelf The same instance.
public static TSelf EndNote<TSelf>(TSelf wordParagraph, Action<WordEndNote> configure) #

Configures WordParagraph.EndNote in place: Gets the endnote associated with this paragraph, if any.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordEndNote> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf Equation<TSelf>(TSelf wordParagraph, Action<WordEquation> configure) #

Configures WordParagraph.Equation in place: Gets the mathematical equation contained in this paragraph, if any.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordEquation> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf Field<TSelf>(TSelf wordParagraph, Action<WordField> configure) #

Configures WordParagraph.Field in place: Gets the field contained in this paragraph, if any.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordField> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf FontFamilyComplexScript<TSelf>(TSelf wordParagraph, string? value) #

Sets WordParagraph.FontFamilyComplexScript: Gets or sets the complex script font family.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Word.WordParagraph { FontFamilyComplexScript = value };    wordParagraph.FontFamilyComplexScript(value);
public static TSelf FontFamilyEastAsia<TSelf>(TSelf wordParagraph, string? value) #

Sets WordParagraph.FontFamilyEastAsia: Gets or sets the East Asia font family.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Word.WordParagraph { FontFamilyEastAsia = value };    wordParagraph.FontFamilyEastAsia(value);
public static TSelf FontFamilyHighAnsi<TSelf>(TSelf wordParagraph, string? value) #

Sets WordParagraph.FontFamilyHighAnsi: Gets or sets the HighAnsi font family.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value string? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Word.WordParagraph { FontFamilyHighAnsi = value };    wordParagraph.FontFamilyHighAnsi(value);
public static TSelf FontFamily<TSelf>(TSelf wordParagraph, string fontFamily) #

Sets the font family for the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
fontFamily string required
Name of the font family.

Returns

TSelf The same instance.
FontSize``1 2 overloads
public static TSelf FontSize<TSelf>(TSelf wordParagraph, OfficeLength fontSize) #

Sets the font size for the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
fontSize OfficeIMO.OfficeLength required
Font size in points.

Returns

TSelf The same instance.
public static TSelf FontSize<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.FontSize: Gets or sets the font size in points with Word's native half-point precision. Values finer than half a point are rounded away from zero to the nearest representable size.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { FontSize = value };    wordParagraph.FontSize(value);
public static TSelf FootNote<TSelf>(TSelf wordParagraph, Action<WordFootNote> configure) #

Configures WordParagraph.FootNote in place: Gets the footnote associated with this paragraph, if any.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordFootNote> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf Hidden<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.Hidden: Gets or sets directly authored hidden formatting on this run. True hides the run, false overrides an inherited hidden setting, and null restores style inheritance. The getter reports direct formatting, not the effective style.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { Hidden = value };    wordParagraph.Hidden(value);
Highlight``1 2 overloads
public static TSelf Highlight<TSelf>(TSelf wordParagraph, WordHighlightColor highlight) #

Sets the highlight color for the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
highlight OfficeIMO.Word.WordHighlightColor required
Highlight color.

Returns

TSelf The same instance.
public static TSelf Highlight<TSelf>(TSelf wordParagraph, WordHighlightColor? value) #

Sets WordParagraph.Highlight: Gets or sets the highlight color applied to the run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordHighlightColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Word.WordParagraph { Highlight = value };    wordParagraph.Highlight(value);
public static TSelf Image<TSelf>(TSelf wordParagraph, Action<WordImage> configure) #

Configures WordParagraph.Image in place: Gets the first independent image associated with this run, if any. Group-owned images remain part of their group.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordImage> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf IndentationAfter<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.IndentationAfter: Gets or sets the indentation after the paragraph as a physical length. Reading accepts the w:end spelling when w:right is absent; setting writes w:right and removes w:end.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { IndentationAfter = value };    wordParagraph.IndentationAfter(value);
public static TSelf IndentationBefore<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.IndentationBefore: Gets or sets the indentation before the paragraph as a physical length. Reading accepts the w:start spelling when w:left is absent; setting writes w:left and removes w:start.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { IndentationBefore = value };    wordParagraph.IndentationBefore(value);
public static TSelf IndentationFirstLine<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.IndentationFirstLine: Gets or sets the first line indentation as a physical length.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { IndentationFirstLine = value };    wordParagraph.IndentationFirstLine(value);
public static TSelf IndentationHanging<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.IndentationHanging: Gets or sets the hanging indentation as a physical length.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { IndentationHanging = value };    wordParagraph.IndentationHanging(value);
public static TSelf Italic<TSelf>(TSelf wordParagraph, bool isItalic = true) #

Sets the WordParagraph.Italic property.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
isItalic bool = true optional
Whether the text should be italic.

Returns

TSelf The same instance.
public static TSelf KeepLinesTogetherOverride<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.KeepLinesTogetherOverride: Gets or sets directly authored keep-lines-together formatting. Null restores style inheritance; false overrides an enabled style.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { KeepLinesTogetherOverride = value };    wordParagraph.KeepLinesTogetherOverride(value);
public static TSelf KeepLinesTogether<TSelf>(TSelf wordParagraph, bool value = true) #

Sets WordParagraph.KeepLinesTogether: Gets or sets directly authored keep-lines-together formatting without resolving paragraph styles.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { KeepLinesTogether = value };    wordParagraph.KeepLinesTogether(value);
public static TSelf KeepWithNextOverride<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.KeepWithNextOverride: Gets or sets directly authored keep-with-next formatting. Null restores style inheritance; false overrides an enabled style.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { KeepWithNextOverride = value };    wordParagraph.KeepWithNextOverride(value);
public static TSelf KeepWithNext<TSelf>(TSelf wordParagraph, bool value = true) #

Sets WordParagraph.KeepWithNext: Gets or sets directly authored keep-with-next formatting without resolving paragraph styles.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { KeepWithNext = value };    wordParagraph.KeepWithNext(value);
public static TSelf KerningMinimumFontSize<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.KerningMinimumFontSize: Gets or sets the minimum font size, in points, at which this run uses kerning. Null inherits the threshold; zero disables kerning. Values from zero to 1638 are rounded to Word's half-point precision and are preserved in DOCX and native DOC.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { KerningMinimumFontSize = value };    wordParagraph.KerningMinimumFontSize(value);
public static TSelf Language<TSelf>(TSelf wordParagraph, string language) #

Sets the language for the text run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
language string required
Language tag, such as en-US or pl-PL.

Returns

TSelf The same instance.
public static TSelf LineSpacingAfter<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.LineSpacingAfter: Gets or sets the spacing after the paragraph as a physical length.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { LineSpacingAfter = value };    wordParagraph.LineSpacingAfter(value);
public static TSelf LineSpacingBefore<TSelf>(TSelf wordParagraph, OfficeLength? value) #

Sets WordParagraph.LineSpacingBefore: Gets or sets the spacing before the paragraph as a physical length.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { LineSpacingBefore = value };    wordParagraph.LineSpacingBefore(value);
public static TSelf LineSpacing<TSelf>(TSelf wordParagraph, WordLineSpacing? value) #

Sets WordParagraph.LineSpacing: Gets or sets directly authored line spacing as a multiplier, exact height, or minimum height. Null removes both line attributes, retaining before/after and other spacing attributes.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordLineSpacing? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Word.WordParagraph { LineSpacing = value };    wordParagraph.LineSpacing(value);
public static TSelf Line<TSelf>(TSelf wordParagraph, Action<WordLine> configure) #

Configures WordParagraph.Line in place: Gets the line shape contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordLine> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf ListItemLevel<TSelf>(TSelf wordParagraph, int? value) #

Sets WordParagraph.ListItemLevel: Gets or sets the indentation level for the paragraph when it belongs to a list.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value int? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Word.WordParagraph { ListItemLevel = value };    wordParagraph.ListItemLevel(value);
public static TSelf MirrorIndents<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.MirrorIndents: Gets or sets use of left/right indents as inside/outside indents. Null restores style inheritance. Fixed-layout exporters have their own mirrored-layout support limits.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { MirrorIndents = value };    wordParagraph.MirrorIndents(value);
public static TSelf OutlineLevel<TSelf>(TSelf wordParagraph, int? value) #

Sets WordParagraph.OutlineLevel: Gets or sets the directly authored outline level: 0-8 for heading levels 1-9, 9 for body text, or null to inherit. Word uses the built-in heading level for Heading1-Heading9 styles regardless of this authored value.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value int? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Word.WordParagraph { OutlineLevel = value };    wordParagraph.OutlineLevel(value);
public static TSelf Outline<TSelf>(TSelf wordParagraph, bool isOutline = true) #

Enables or disables outline effect on the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
isOutline bool = true optional
Whether the text should be outlined.

Returns

TSelf The same instance.
public static TSelf PageBreakBeforeOverride<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.PageBreakBeforeOverride: Gets or sets directly authored page-break-before formatting. Null restores style inheritance; false overrides an enabled style.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { PageBreakBeforeOverride = value };    wordParagraph.PageBreakBeforeOverride(value);
public static TSelf PageBreakBefore<TSelf>(TSelf wordParagraph, bool value = true) #

Sets WordParagraph.PageBreakBefore: Gets or sets a directly authored page-break-before value; this does not resolve inherited paragraph styles.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { PageBreakBefore = value };    wordParagraph.PageBreakBefore(value);
public static TSelf ParagraphAlignment<TSelf>(TSelf wordParagraph, WordParagraphAlignment? value) #

Sets WordParagraph.ParagraphAlignment: Alignment aka Paragraph Alignment. This element specifies the paragraph alignment which shall be applied to text in this paragraph. If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (i.e.that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then no alignment is applied to the paragraph. Setting this property to null removes direct alignment and restores style inheritance.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordParagraphAlignment? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Word.WordParagraph { ParagraphAlignment = value };    wordParagraph.ParagraphAlignment(value);
public static TSelf PictureControl<TSelf>(TSelf wordParagraph, Action<WordPictureControl> configure) #

Configures WordParagraph.PictureControl in place: Gets the picture content control contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordPictureControl> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf RepeatingSection<TSelf>(TSelf wordParagraph, Action<WordRepeatingSection> configure) #

Configures WordParagraph.RepeatingSection in place: Gets the repeating section contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordRepeatingSection> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf ShadingFillColor<TSelf>(TSelf wordParagraph, OfficeColor? value) #

Sets WordParagraph.ShadingFillColor: Get or set the paragraph shading fill color. Setting null removes the shading.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { ShadingFillColor = value };    wordParagraph.ShadingFillColor(value);
public static TSelf ShadingPattern<TSelf>(TSelf wordParagraph, WordShadingPattern? value) #

Sets WordParagraph.ShadingPattern: Get or set the paragraph shading pattern.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordShadingPattern? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Word.WordParagraph { ShadingPattern = value };    wordParagraph.ShadingPattern(value);
public static TSelf Shadow<TSelf>(TSelf wordParagraph, bool isShadow = true) #

Enables or disables shadow effect on the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
isShadow bool = true optional
Whether the text should have a shadow.

Returns

TSelf The same instance.
public static TSelf Shape<TSelf>(TSelf wordParagraph, Action<WordShape> configure) #

Configures WordParagraph.Shape in place: Returns a WordShape instance when the paragraph contains shapes.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordShape> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf SmallCaps<TSelf>(TSelf wordParagraph, bool isSmallCaps = true) #

Enables or disables small caps formatting on the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
isSmallCaps bool = true optional
Whether the text should use small caps.

Returns

TSelf The same instance.
public static TSelf Spacing<TSelf>(TSelf wordParagraph, OfficeLength? spacing) #

Sets the character spacing for the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
spacing OfficeIMO.OfficeLength? required
Signed character spacing, or null to remove the local value.

Returns

TSelf The same instance.
public static TSelf Strikethrough<TSelf>(TSelf wordParagraph, bool strikethrough = true) #

Enables or disables single strikethrough on the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
strikethrough bool = true optional
Whether the text should be struck through.

Returns

TSelf The same instance.
public static TSelf StructuredDocumentTag<TSelf>(TSelf wordParagraph, Action<WordStructuredDocumentTag> configure) #

Configures WordParagraph.StructuredDocumentTag in place: Gets the structured document tag contained in this paragraph, if present.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordStructuredDocumentTag> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf StyleId<TSelf>(TSelf wordParagraph, string styleId) #

Sets the paragraph style by identifier.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
styleId string required
The style identifier.

Returns

TSelf The same instance.
Style``1 3 overloads
public static TSelf Style<TSelf>(TSelf wordParagraph, WordParagraphStyles style) #

Sets the paragraph style.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
style OfficeIMO.Word.WordParagraphStyles required
The style to apply.

Returns

TSelf The same instance.
public static TSelf Style<TSelf>(TSelf wordParagraph, WordStyle style) #

Applies a paragraph style defined in this paragraph's document.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
style OfficeIMO.Word.WordStyle required
A paragraph style from WordDocument.Styles.

Returns

TSelf The same instance.
public static TSelf Style<TSelf>(TSelf wordParagraph, WordParagraphStyles? value) #

Sets WordParagraph.Style: Gets or sets the paragraph style. Updating this to a heading style will flag the document to update the table of contents on open.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordParagraphStyles? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                  // C# fluent
new global::OfficeIMO.Word.WordParagraph { Style = value };    wordParagraph.Style(value);
public static TSelf Subscript<TSelf>(TSelf wordParagraph) #

Set the text as subscript

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.

Returns

TSelf The same instance.
public static TSelf Superscript<TSelf>(TSelf wordParagraph) #

Set the text as superscript

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.

Returns

TSelf The same instance.
public static TSelf SuppressAutoHyphens<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.SuppressAutoHyphens: Gets or sets paragraph automatic-hyphenation suppression. Null restores style inheritance. Automatic Word hyphenation is not supplied by this property.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { SuppressAutoHyphens = value };    wordParagraph.SuppressAutoHyphens(value);
public static TSelf SuppressLineNumbers<TSelf>(TSelf wordParagraph, bool? value = true) #

Sets WordParagraph.SuppressLineNumbers: Gets or sets paragraph line-number suppression. Null restores style inheritance. This preserves the Word setting and does not enable line-number rendering in PDF.

Type Parameters

TSelf

Parameters

wordParagraph 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.Word.WordParagraph { SuppressLineNumbers = value };    wordParagraph.SuppressLineNumbers(value);
public static TSelf TextBox<TSelf>(TSelf wordParagraph, Action<WordTextBox> configure) #

Configures WordParagraph.TextBox in place: Gets the WordTextBox contained within the paragraph, if any.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
configure System.Action<OfficeIMO.Word.WordTextBox> required
Configures the value.

Returns

TSelf The same instance.
public static TSelf TextDirection<TSelf>(TSelf wordParagraph, WordTextDirection? value) #

Sets WordParagraph.TextDirection: Gets or sets the text flow direction for the paragraph.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordTextDirection? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Word.WordParagraph { TextDirection = value };    wordParagraph.TextDirection(value);
public static TSelf Text<TSelf>(TSelf wordParagraph, string text) #

Sets the paragraph text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
text string required
The text content.

Returns

TSelf The same instance.
public static TSelf ThemeColor<TSelf>(TSelf wordParagraph, WordThemeColor? value) #

Sets WordParagraph.ThemeColor: Gets or sets the theme color applied to the run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordThemeColor? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Word.WordParagraph { ThemeColor = value };    wordParagraph.ThemeColor(value);
Underline``1 2 overloads
public static TSelf Underline<TSelf>(TSelf wordParagraph, WordUnderlineStyle underline) #

Sets the underline style for the text.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
underline OfficeIMO.Word.WordUnderlineStyle required
Underline style.

Returns

TSelf The same instance.
public static TSelf Underline<TSelf>(TSelf wordParagraph, WordUnderlineStyle? value) #

Sets WordParagraph.Underline: Gets or sets the underline style for the run.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordUnderlineStyle? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Word.WordParagraph { Underline = value };    wordParagraph.Underline(value);
public static TSelf VerticalCharacterAlignmentOnLine<TSelf>(TSelf wordParagraph, WordVerticalCharacterAlignment? value) #

Sets WordParagraph.VerticalCharacterAlignmentOnLine: Text Alignment aka Vertical Character Alignment on Line. This element specifies the vertical alignment of all text on each line displayed within a paragraph. If the line height (before any added spacing) is larger than one or more characters on the line, all characters are aligned to each other as specified by this element. If this element is omitted on a given paragraph, its value is determined by the setting previously set at any level of the style hierarchy (i.e.that previous setting remains unchanged). If this setting is never specified in the style hierarchy, then the vertical alignment of all characters on the line shall be automatically determined by the consumer. Setting this property to null removes direct alignment and restores style inheritance.

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
value OfficeIMO.Word.WordVerticalCharacterAlignment? required
The value.

Returns

TSelf The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Word.WordParagraph { VerticalCharacterAlignmentOnLine = value };    wordParagraph.VerticalCharacterAlignmentOnLine(value);
public static TSelf VerticalTextAlignment<TSelf>(TSelf wordParagraph, WordVerticalTextPosition? verticalPositionValue) #

Set the vertical text alignment

Type Parameters

TSelf

Parameters

wordParagraph TSelf required
The instance.
verticalPositionValue OfficeIMO.Word.WordVerticalTextPosition? required
The value.

Returns

TSelf The same instance.