Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordParagraphScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
sealed

Edits one WordParagraph: its fluent methods and keywords, each returning this scope.

Inheritance

  • object
  • WordParagraphScope

Usage

Explore 111 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.

Returned or exposed by 88

Accepted by parameters 23

Methods

public WordParagraphScope Alignment(WordParagraphAlignment alignment) #

Sets the paragraph alignment.

Parameters

alignment OfficeIMO.Word.WordParagraphAlignment required
Alignment value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope AvoidWidowAndOrphan(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope AvoidWidowAndOrphanOverride(bool? value = true) #

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

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
BackgroundColor 2 overloads
public WordParagraphScope BackgroundColor(OfficeColor color) #

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

Parameters

color OfficeIMO.OfficeColor required
The background color.

Returns

WordParagraphScope The same scope.
public WordParagraphScope BackgroundColor(OfficeColor? value) #

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

Parameters

value OfficeIMO.OfficeColor? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope BiDi(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Bold(bool isBold = true) #

Sets the WordParagraph.Bold property.

Parameters

isBold bool = true optional
Whether the text should be bold.

Returns

WordParagraphScope The same scope.
Bookmark 2 overloads
public WordParagraphScope Bookmark(Action<WordBookmark> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordBookmark> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Bookmark(string bookmarkName, Action<WordBookmarkScope>? configure = null) #

Add bookmark to a word document proceeding from the paragraph this was called on.

Parameters

bookmarkName string required
The name of the bookmark.
configure System.Action<OfficeIMO.Word.WordBookmarkScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Break(WordBreakType? breakType = null, Action<WordParagraphScope>? configure = null) #

Add Break to the paragraph. By default it adds soft break (SHIFT+ENTER)

Parameters

breakType OfficeIMO.Word.WordBreakType? = null optional
Optional argument to add a specific type of break.
configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope CapsStyle(WordCapsStyle capsStyle) #

Sets the capitalization style for the text.

Parameters

capsStyle OfficeIMO.Word.WordCapsStyle required
Capitalization style.

Returns

WordParagraphScope The same scope.
public WordParagraphScope CharacterScale(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.

Parameters

value int? required
The value.

Returns

WordParagraphScope The same scope.
CharacterStyle 3 overloads
public WordParagraphScope CharacterStyle(WordStyle style) #

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

Parameters

style OfficeIMO.Word.WordStyle required
A character style from WordDocument.Styles.

Returns

WordParagraphScope The same scope.
public WordParagraphScope CharacterStyle(WordCharacterStyles style) #

Sets the character style for the run.

Parameters

style OfficeIMO.Word.WordCharacterStyles required
Character style to apply.

Returns

WordParagraphScope The same scope.
public WordParagraphScope CharacterStyle(WordCharacterStyles? value) #

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

Parameters

value OfficeIMO.Word.WordCharacterStyles? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope CharacterStyleId(string styleId) #

Sets the character style by identifier.

Parameters

styleId string required
The style identifier.

Returns

WordParagraphScope The same scope.
Chart 3 overloads
public WordParagraphScope Chart(Action<WordChart> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordChart> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Chart(string title = "", bool roundedCorners = false, OfficeLength? width = null, OfficeLength? height = null, Action<WordChartScope>? configure = null) #

Adds the chart to the document. The type of chart is determined by the type of data passed in. You can use multiple: .AddBar() to add a bar chart .AddLine() to add a line chart .AddPie() to add a pie chart .AddArea() to add an area chart .AddScatter() to add a scatter chart .AddRadar() to add a radar chart .AddBar3D() to add a 3-D bar chart. .AddPie3D() to add a 3-D pie chart. .AddLine3D() to add a 3-D line chart. You can't mix and match the types of charts, except bar and line which can coexist in a combo chart.

Parameters

title string = "" optional
The title.
roundedCorners bool = false optional
if set to true [rounded corners].
width OfficeIMO.OfficeLength? = null optional
The width.
height OfficeIMO.OfficeLength? = null optional
The height.
configure System.Action<OfficeIMO.Word.WordChartScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Chart(OfficeChartType chartKind, OfficeChartData data, OfficeChartOptions? options = null, Action<WordChartScope>? configure = null) #

Inserts an editable chart with an embedded worksheet after this paragraph.

Parameters

chartKind OfficeIMO.OfficeChartType required
Default chart family for series without their own render kind.
data OfficeIMO.Drawing.OfficeChartData required
Shared chart categories, series, and appearance.
options OfficeIMO.OfficeChartOptions? = null optional
Optional title, physical size and Word frame options. The default size is 600 by 600 pixels.
configure System.Action<OfficeIMO.Word.WordChartScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
CheckBox 2 overloads
public WordParagraphScope CheckBox(Action<WordCheckBox> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordCheckBox> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope CheckBox(bool isChecked = false, string? alias = null, string? tag = null, Action<WordCheckBoxScope>? configure = null) #

Adds a checkbox content control to the paragraph.

Parameters

isChecked bool = false optional
Initial checked state.
alias string? = null optional
Optional alias for the control.
tag string? = null optional
Optional tag for the control.
configure System.Action<OfficeIMO.Word.WordCheckBoxScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope CheckBoxValue(bool value = true) #

Sets the checked state of the paragraph's checkbox.

Parameters

value bool = true optional
New checked state. True when omitted.

Returns

WordParagraphScope The same scope.
Color 2 overloads
public WordParagraphScope Color(OfficeColor color) #

Sets the text color using OfficeColor.

Parameters

color OfficeIMO.OfficeColor required
The color to apply.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Color(OfficeColor? value) #

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

Parameters

value OfficeIMO.OfficeColor? required
The value.

Returns

WordParagraphScope The same scope.
ComboBox 2 overloads
public WordParagraphScope ComboBox(Action<WordComboBox> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordComboBox> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope ComboBox(IEnumerable<string> items, string? alias = null, string? tag = null, string? defaultValue = null, Action<WordComboBoxScope>? configure = null) #

Adds a combo box content control to the paragraph.

Parameters

items System.Collections.Generic.IEnumerable<string> required
Items to include in the combo box.
alias string? = null optional
Optional alias for the control.
tag string? = null optional
Optional tag for the control.
defaultValue string? = null optional
Optional default value to display; must match one of the provided items.
configure System.Action<OfficeIMO.Word.WordComboBoxScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Comment(string author, string initials, string comment, Action<WordCommentScope>? configure = null) #

Add a comment to paragraph

Parameters

author string required
The name of the commenting author
initials string required
The initials of the commenting author
comment string required
The comment text
configure System.Action<OfficeIMO.Word.WordCommentScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope ContextualSpacing(bool? value = true) #

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

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
DatePicker 2 overloads
public WordParagraphScope DatePicker(Action<WordDatePicker> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordDatePicker> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope DatePicker(DateTime? date = null, string? alias = null, string? tag = null, Action<WordDatePickerScope>? configure = null) #

Adds a date picker content control to the paragraph.

Parameters

date System.DateTime? = null optional
Initial date value.
alias string? = null optional
Optional alias for the control.
tag string? = null optional
Optional tag for the control.
configure System.Action<OfficeIMO.Word.WordDatePickerScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope DoNotCheckSpellingOrGrammar(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope DoubleStrikethrough(bool doubleStrikethrough = true) #

Enables or disables double strikethrough on the text.

Parameters

doubleStrikethrough bool = true optional
Whether the text should be double struck.

Returns

WordParagraphScope The same scope.
DropDownList 2 overloads
public WordParagraphScope DropDownList(Action<WordDropDownList> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordDropDownList> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope DropDownList(IEnumerable<string> items, string? alias = null, string? tag = null, Action<WordDropDownListScope>? configure = null) #

Adds a dropdown list content control to the paragraph.

Parameters

items System.Collections.Generic.IEnumerable<string> required
Items to include in the list.
alias string? = null optional
Optional alias for the control.
tag string? = null optional
Optional tag for the control.
configure System.Action<OfficeIMO.Word.WordDropDownListScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Emboss(bool isEmboss = true) #

Enables or disables emboss effect on the text.

Parameters

isEmboss bool = true optional
Whether the text should be embossed.

Returns

WordParagraphScope The same scope.
public WordParagraphScope EndNote(Action<WordEndNote> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordEndNote> required
Configures the value.

Returns

WordParagraphScope The same scope.
Equation 3 overloads
public WordParagraphScope Equation(Action<WordEquation> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordEquation> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Equation(OfficeMathExpression expression, Action<WordEquationScope>? configure = null) #

Adds an inline editable Word equation authored with the reusable OfficeIMO math model.

Parameters

expression OfficeIMO.Drawing.OfficeMathExpression required
The value.
configure System.Action<OfficeIMO.Word.WordEquationScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Equation(string omml, Action<WordEquationScope>? configure = null) #

Adds a mathematical equation represented as OMML XML.

Parameters

omml string required
Office Math Markup Language (OMML) fragment.
configure System.Action<OfficeIMO.Word.WordEquationScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
Field 4 overloads
public WordParagraphScope Field(Action<WordField> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordField> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Field(WordFieldType wordFieldType, WordFieldFormat? wordFieldFormat = null, string? customFormat = null, bool advanced = false, List<string>? parameters = null, Action<WordFieldScope>? configure = null) #

Add fields to a word document proceeding from the paragraph this is called on.

Parameters

wordFieldType OfficeIMO.Word.WordFieldType required
The type of field to add.
wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null optional
The format of the field to add.
customFormat string? = null optional
Custom format string for date or time fields.
advanced bool = false optional
Use advanced field representation.
parameters System.Collections.Generic.List<string>? = null optional
Usages like parameters = new List< String>{ @"\d 'Default'", @"\c" }; Also see available List of switches per field code: https://support.microsoft.com/en-us/office/list-of-field-codes-in-word-1ad6d91a-55a7-4a8d-b535-cf7888659a51
configure System.Action<OfficeIMO.Word.WordFieldScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Field(WordFieldCode fieldCode, WordFieldFormat? wordFieldFormat = null, string? customFormat = null, bool advanced = false, Action<WordFieldScope>? configure = null) #

Add a field represented by a WordFieldCode.

Parameters

fieldCode OfficeIMO.Word.WordFieldCode required
Field code instance describing instructions and switches.
wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null optional
Optional field format.
customFormat string? = null optional
Custom format string for date or time fields.
advanced bool = false optional
Use advanced field representation.
configure System.Action<OfficeIMO.Word.WordFieldScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Field(WordFieldBuilder builder, bool advanced = false, Action<WordFieldScope>? configure = null) #

Adds a field constructed using WordFieldBuilder.

Parameters

builder OfficeIMO.Word.WordFieldBuilder required
Field builder instance.
advanced bool = false optional
Use advanced field representation.
configure System.Action<OfficeIMO.Word.WordFieldScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope FontFamily(string fontFamily) #

Sets the font family for the text.

Parameters

fontFamily string required
Name of the font family.

Returns

WordParagraphScope The same scope.
public WordParagraphScope FontFamilyComplexScript(string? value) #

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

Parameters

value string? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope FontFamilyEastAsia(string? value) #

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

Parameters

value string? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope FontFamilyHighAnsi(string? value) #

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

Parameters

value string? required
The value.

Returns

WordParagraphScope The same scope.
FontSize 2 overloads
public WordParagraphScope FontSize(OfficeLength fontSize) #

Sets the font size for the text.

Parameters

fontSize OfficeIMO.OfficeLength required
Font size in points.

Returns

WordParagraphScope The same scope.
public WordParagraphScope FontSize(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.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope FootNote(Action<WordFootNote> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordFootNote> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Hidden(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.

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
Highlight 2 overloads
public WordParagraphScope Highlight(WordHighlightColor highlight) #

Sets the highlight color for the text.

Parameters

highlight OfficeIMO.Word.WordHighlightColor required
Highlight color.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Highlight(WordHighlightColor? value) #

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

Parameters

value OfficeIMO.Word.WordHighlightColor? required
The value.

Returns

WordParagraphScope The same scope.
Hyperlink 3 overloads
Image 3 overloads
public WordParagraphScope Image(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.

Parameters

configure System.Action<OfficeIMO.Word.WordImage> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Image(string path, OfficeLength? width = null, OfficeLength? height = null, WordImageOptions? options = null, Action<WordImageScope>? configure = null) #

Embeds an image file and returns its editable occurrence.

Parameters

path string required
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
options OfficeIMO.Word.WordImageOptions? = null optional
The value.
configure System.Action<OfficeIMO.Word.WordImageScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Image(Stream stream, string fileName, OfficeLength? width = null, OfficeLength? height = null, WordImageOptions? options = null, Action<WordImageScope>? configure = null) #

Embeds an image stream without disposing the caller's stream.

Parameters

stream System.IO.Stream required
The value.
fileName string required
The value.
width OfficeIMO.OfficeLength? = null optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.
options OfficeIMO.Word.WordImageOptions? = null optional
The value.
configure System.Action<OfficeIMO.Word.WordImageScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope IndentationAfter(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.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope IndentationBefore(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.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope IndentationFirstLine(OfficeLength? value) #

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

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope IndentationHanging(OfficeLength? value) #

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

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Italic(bool isItalic = true) #

Sets the WordParagraph.Italic property.

Parameters

isItalic bool = true optional
Whether the text should be italic.

Returns

WordParagraphScope The same scope.
public WordParagraphScope KeepLinesTogether(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope KeepLinesTogetherOverride(bool? value = true) #

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

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope KeepWithNext(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope KeepWithNextOverride(bool? value = true) #

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

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope KerningMinimumFontSize(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.

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Language(string language) #

Sets the language for the text run.

Parameters

language string required
Language tag, such as en-US or pl-PL.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Line(Action<WordLine> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordLine> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope LineSpacing(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.

Parameters

value OfficeIMO.Word.WordLineSpacing? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope LineSpacingAfter(OfficeLength? value) #

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

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope LineSpacingBefore(OfficeLength? value) #

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

Parameters

value OfficeIMO.OfficeLength? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope List(WordListStyle style, Action<WordListScope>? configure = null) #

Add a list after this paragraph.

Parameters

style OfficeIMO.Word.WordListStyle required
The style of this list.
configure System.Action<OfficeIMO.Word.WordListScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope ListItemLevel(int? value) #

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

Parameters

value int? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope MirrorIndents(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.

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Outline(bool isOutline = true) #

Enables or disables outline effect on the text.

Parameters

isOutline bool = true optional
Whether the text should be outlined.

Returns

WordParagraphScope The same scope.
public WordParagraphScope OutlineLevel(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.

Parameters

value int? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope PageBreakBefore(bool value = true) #

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

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope PageBreakBeforeOverride(bool? value = true) #

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

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope PageNumber(bool includeTotalPages = false, WordFieldFormat? format = null, string separator = " of ", Action<WordParagraphScope>? configure = null) #

Adds a page number field to the paragraph.

Parameters

includeTotalPages bool = false optional
If true adds a NUMPAGES field preceded by text " of ".
format OfficeIMO.Word.WordFieldFormat? = null optional
Optional field format to apply.
separator string = " of " optional
Text inserted between the current page and total pages fields.
configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope ParagraphAlignment(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.

Parameters

value OfficeIMO.Word.WordParagraphAlignment? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope PictureControl(Action<WordPictureControl> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordPictureControl> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope RepeatingSection(Action<WordRepeatingSection> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordRepeatingSection> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope ShadingFillColor(OfficeColor? value) #

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

Parameters

value OfficeIMO.OfficeColor? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope ShadingPattern(WordShadingPattern? value) #

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

Parameters

value OfficeIMO.Word.WordShadingPattern? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Shadow(bool isShadow = true) #

Enables or disables shadow effect on the text.

Parameters

isShadow bool = true optional
Whether the text should have a shadow.

Returns

WordParagraphScope The same scope.
Shape 2 overloads
public WordParagraphScope Shape(Action<WordShape> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordShape> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Shape(WordShapeType shapeType, OfficeLength width, OfficeLength height, OfficeColor? fillColor = null, OfficeColor? strokeColor = null, OfficeLength? strokeWeight = null, double arcSize = 0.25, Action<WordShapeScope>? configure = null) #

Adds a VML shape to the paragraph and returns the created shape.

Parameters

shapeType OfficeIMO.Word.WordShapeType required
Type of shape to create.
width OfficeIMO.OfficeLength required
Width, or the line end X coordinate.
height OfficeIMO.OfficeLength required
Height, or the line end Y coordinate.
fillColor OfficeIMO.OfficeColor? = null optional
Fill color; white when omitted.
strokeColor OfficeIMO.OfficeColor? = null optional
Outline color; black when omitted.
strokeWeight OfficeIMO.OfficeLength? = null optional
Outline thickness; one point when omitted.
arcSize double = 0.25 optional
Dimensionless corner roundness fraction.
configure System.Action<OfficeIMO.Word.WordShapeScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope SmallCaps(bool isSmallCaps = true) #

Enables or disables small caps formatting on the text.

Parameters

isSmallCaps bool = true optional
Whether the text should use small caps.

Returns

WordParagraphScope The same scope.
public WordParagraphScope SmartArt(WordSmartArtType type, Action<WordSmartArtScope>? configure = null) #

Inserts a SmartArt diagram at the current position.

Parameters

type OfficeIMO.Word.WordSmartArtType required
Layout of SmartArt to create.
configure System.Action<OfficeIMO.Word.WordSmartArtScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Spacing(OfficeLength? spacing) #

Sets the character spacing for the text.

Parameters

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

Returns

WordParagraphScope The same scope.
public WordParagraphScope Strikethrough(bool strikethrough = true) #

Enables or disables single strikethrough on the text.

Parameters

strikethrough bool = true optional
Whether the text should be struck through.

Returns

WordParagraphScope The same scope.
public WordParagraphScope StructuredDocumentTag(Action<WordStructuredDocumentTag> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordStructuredDocumentTag> required
Configures the value.

Returns

WordParagraphScope The same scope.
Style 3 overloads
public WordParagraphScope Style(WordParagraphStyles style) #

Sets the paragraph style.

Parameters

style OfficeIMO.Word.WordParagraphStyles required
The style to apply.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Style(WordStyle style) #

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

Parameters

style OfficeIMO.Word.WordStyle required
A paragraph style from WordDocument.Styles.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Style(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.

Parameters

value OfficeIMO.Word.WordParagraphStyles? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope StyleId(string styleId) #

Sets the paragraph style by identifier.

Parameters

styleId string required
The style identifier.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Subscript() #

Set the text as subscript

Returns

WordParagraphScope The same scope.
public WordParagraphScope Superscript() #

Set the text as superscript

Returns

WordParagraphScope The same scope.
public WordParagraphScope SuppressAutoHyphens(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.

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope SuppressLineNumbers(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.

Parameters

value bool? = true optional
The value; true when omitted.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Tab(Action<WordParagraphScope>? configure = null) #

Adds a Tab to a paragraph

Parameters

configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope TabStop(OfficeLength position, WordTabAlignment? alignment = null, WordTabLeader? leader = null, Action<WordTabStopScope>? configure = null) #

Provides ability for configuration of Tabs in a paragraph by adding one or more TabStops

Parameters

position OfficeIMO.OfficeLength required
The signed tab position, rounded to the nearest twip.
alignment OfficeIMO.Word.WordTabAlignment? = null optional
The optional alignment for the tabs.
leader OfficeIMO.Word.WordTabLeader? = null optional
The optional rune to use before the tabs.
configure System.Action<OfficeIMO.Word.WordTabStopScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Text(string? text, Action<WordParagraphScope>? configure = null) #

Add a text to existing paragraph

Parameters

text string? required
The text to be added to the paragraph.
configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
TextBox 2 overloads
public WordParagraphScope TextBox(Action<WordTextBox> configure) #

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

Parameters

configure System.Action<OfficeIMO.Word.WordTextBox> required
Configures the value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope TextBox(string text, WordImageTextWrapping wrapTextImage, Action<WordTextBoxScope>? configure = null) #

Add a text box to the document.

Parameters

text string required
The text inside the text box.
wrapTextImage OfficeIMO.Word.WordImageTextWrapping required
The text image wrapping settings.
configure System.Action<OfficeIMO.Word.WordTextBoxScope>? = null optional
Configures the new item through its scope.

Returns

WordParagraphScope The same scope.
public WordParagraphScope TextDirection(WordTextDirection? value) #

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

Parameters

value OfficeIMO.Word.WordTextDirection? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope ThemeColor(WordThemeColor? value) #

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

Parameters

value OfficeIMO.Word.WordThemeColor? required
The value.

Returns

WordParagraphScope The same scope.
Underline 2 overloads
public WordParagraphScope Underline(WordUnderlineStyle underline) #

Sets the underline style for the text.

Parameters

underline OfficeIMO.Word.WordUnderlineStyle required
Underline style.

Returns

WordParagraphScope The same scope.
public WordParagraphScope Underline(WordUnderlineStyle? value) #

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

Parameters

value OfficeIMO.Word.WordUnderlineStyle? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope VerticalCharacterAlignmentOnLine(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.

Parameters

value OfficeIMO.Word.WordVerticalCharacterAlignment? required
The value.

Returns

WordParagraphScope The same scope.
public WordParagraphScope VerticalTextAlignment(WordVerticalTextPosition? verticalPositionValue) #

Set the vertical text alignment

Parameters

verticalPositionValue OfficeIMO.Word.WordVerticalTextPosition? required
The value.

Returns

WordParagraphScope The same scope.

Properties

public WordParagraph Model { get; } #

The WordParagraph this scope edits, for plain C# inside a lambda.