WordParagraphScope
OfficeIMO.Word
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
- Method WordParagraphScope.Alignment
- Method WordParagraphScope.AvoidWidowAndOrphan
- Method WordParagraphScope.AvoidWidowAndOrphanOverride
- Method WordParagraphScope.BackgroundColor
- Method WordParagraphScope.BiDi
- Method WordParagraphScope.Bold
- Method WordParagraphScope.Bookmark
- Method WordParagraphScope.Break
- Method WordParagraphScope.CapsStyle
- Method WordParagraphScope.CharacterScale
- Method WordParagraphScope.CharacterStyle
- Method WordParagraphScope.CharacterStyleId
- Method WordParagraphScope.Chart
- Method WordParagraphScope.CheckBox
- Method WordParagraphScope.CheckBoxValue
- Method WordParagraphScope.Color
- Method WordParagraphScope.ComboBox
- Method WordParagraphScope.Comment
- Method WordParagraphScope.ContextualSpacing
- Method WordParagraphScope.DatePicker
- Method WordParagraphScope.DoNotCheckSpellingOrGrammar
- Method WordParagraphScope.DoubleStrikethrough
- Method WordParagraphScope.DropDownList
- Method WordParagraphScope.Emboss
- Method WordParagraphScope.EndNote
- Method WordParagraphScope.Equation
- Method WordParagraphScope.Field
- Method WordParagraphScope.FontFamily
- Method WordParagraphScope.FontFamilyComplexScript
- Method WordParagraphScope.FontFamilyEastAsia
- Method WordParagraphScope.FontFamilyHighAnsi
- Method WordParagraphScope.FontSize
- Method WordParagraphScope.FootNote
- Method WordParagraphScope.Hidden
- Method WordParagraphScope.Highlight
- Method WordParagraphScope.Hyperlink
- Method WordParagraphScope.HyperLink
- Method WordParagraphScope.Image
- Method WordParagraphScope.IndentationAfter
- Method WordParagraphScope.IndentationBefore
- Method WordParagraphScope.IndentationFirstLine
- Method WordParagraphScope.IndentationHanging
- Method WordParagraphScope.Italic
- Method WordParagraphScope.KeepLinesTogether
- Method WordParagraphScope.KeepLinesTogetherOverride
- Method WordParagraphScope.KeepWithNext
- Method WordParagraphScope.KeepWithNextOverride
- Method WordParagraphScope.KerningMinimumFontSize
- Method WordParagraphScope.Language
- Method WordParagraphScope.Line
- Method WordParagraphScope.LineSpacing
- Method WordParagraphScope.LineSpacingAfter
- Method WordParagraphScope.LineSpacingBefore
- Method WordParagraphScope.List
- Method WordParagraphScope.ListItemLevel
- Method WordParagraphScope.MirrorIndents
- Method WordParagraphScope.Outline
- Method WordParagraphScope.OutlineLevel
- Method WordParagraphScope.PageBreakBefore
- Method WordParagraphScope.PageBreakBeforeOverride
- Method WordParagraphScope.PageNumber
- Method WordParagraphScope.ParagraphAlignment
- Method WordParagraphScope.PictureControl
- Method WordParagraphScope.RepeatingSection
- Method WordParagraphScope.ShadingFillColor
- Method WordParagraphScope.ShadingPattern
- Method WordParagraphScope.Shadow
- Method WordParagraphScope.Shape
- Method WordParagraphScope.SmallCaps
- Method WordParagraphScope.SmartArt
- Method WordParagraphScope.Spacing
- Method WordParagraphScope.Strikethrough
- Method WordParagraphScope.StructuredDocumentTag
- Method WordParagraphScope.Style
- Method WordParagraphScope.StyleId
- Method WordParagraphScope.Subscript
- Method WordParagraphScope.Superscript
- Method WordParagraphScope.SuppressAutoHyphens
- Method WordParagraphScope.SuppressLineNumbers
- Method WordParagraphScope.Tab
- Method WordParagraphScope.TabStop
- Method WordParagraphScope.Text
- Method WordParagraphScope.TextBox
- Method WordParagraphScope.TextDirection
- Method WordParagraphScope.ThemeColor
- Method WordParagraphScope.Underline
- Method WordParagraphScope.VerticalCharacterAlignmentOnLine
- Method WordParagraphScope.VerticalTextAlignment
Accepted by parameters 23
- Method WordDocumentScope.Break
- Method WordDocumentScope.Callout
- Method WordDocumentScope.CodeBlock
- Method WordDocumentScope.Heading
- Method WordDocumentScope.HorizontalLine
- Method WordDocumentScope.PageBreak
- Method WordDocumentScope.Paragraph
- Method WordFooterScope.HorizontalLine
- Method WordFooterScope.PageNumber
- Method WordFooterScope.Paragraph
- Method WordHeaderScope.HorizontalLine
- Method WordHeaderScope.PageNumber
- Method WordHeaderScope.Paragraph
- Method WordListScope.Item
- Method WordListScope.LinkItem
- Method WordListScope.TaskItem
- Method WordParagraphScope.Break
- Method WordParagraphScope.PageNumber
- Method WordParagraphScope.Tab
- Method WordParagraphScope.Text
- Method WordSectionScope.HorizontalLine
- Method WordSectionScope.Paragraph
- Method WordTableCellScope.Paragraph
Methods
public WordParagraphScope Alignment(WordParagraphAlignment alignment) #Sets the paragraph alignment.
Parameters
- alignment OfficeIMO.Word.WordParagraphAlignment
- Alignment value.
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
- The value; true when omitted.
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
- The value; true when omitted.
public WordParagraphScope BackgroundColor(OfficeColor color) #Applies an exact background (run shading fill) color to the current text run.
Parameters
- color OfficeIMO.OfficeColor
- The background color.
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?
- The value.
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
- The value; true when omitted.
public WordParagraphScope Bold(bool isBold = true) #Sets the WordParagraph.Bold property.
Parameters
- isBold bool = true
- Whether the text should be bold.
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>
- Configures the value.
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
- The name of the bookmark.
- configure System.Action<OfficeIMO.Word.WordBookmarkScope>? = null
- Configures the new item through its 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 argument to add a specific type of break.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its scope.
public WordParagraphScope CapsStyle(WordCapsStyle capsStyle) #Sets the capitalization style for the text.
Parameters
- capsStyle OfficeIMO.Word.WordCapsStyle
- Capitalization style.
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?
- The value.
public WordParagraphScope CharacterStyle(WordStyle style) #Applies a character style defined in this paragraph's document to the run.
Parameters
- style OfficeIMO.Word.WordStyle
- A character style from WordDocument.Styles.
public WordParagraphScope CharacterStyle(WordCharacterStyles style) #Sets the character style for the run.
Parameters
- style OfficeIMO.Word.WordCharacterStyles
- Character style to apply.
public WordParagraphScope CharacterStyle(WordCharacterStyles? value) #Sets WordParagraph.CharacterStyle: Gets or sets the character style applied to the run.
Parameters
- value OfficeIMO.Word.WordCharacterStyles?
- The value.
public WordParagraphScope CharacterStyleId(string styleId) #Sets the character style by identifier.
Parameters
- styleId string
- The style identifier.
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>
- Configures the value.
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 = ""
- The title.
- roundedCorners bool = false
- if set to true [rounded corners].
- width OfficeIMO.OfficeLength? = null
- The width.
- height OfficeIMO.OfficeLength? = null
- The height.
- configure System.Action<OfficeIMO.Word.WordChartScope>? = null
- Configures the new item through its 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
- Default chart family for series without their own render kind.
- data OfficeIMO.Drawing.OfficeChartData
- Shared chart categories, series, and appearance.
- options OfficeIMO.OfficeChartOptions? = null
- Optional title, physical size and Word frame options. The default size is 600 by 600 pixels.
- configure System.Action<OfficeIMO.Word.WordChartScope>? = null
- Configures the new item through its scope.
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>
- Configures the value.
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
- Initial checked state.
- alias string? = null
- Optional alias for the control.
- tag string? = null
- Optional tag for the control.
- configure System.Action<OfficeIMO.Word.WordCheckBoxScope>? = null
- Configures the new item through its scope.
public WordParagraphScope CheckBoxValue(bool value = true) #Sets the checked state of the paragraph's checkbox.
Parameters
- value bool = true
- New checked state. True when omitted.
public WordParagraphScope Color(OfficeColor color) #Sets the text color using OfficeColor.
Parameters
- color OfficeIMO.OfficeColor
- The color to apply.
public WordParagraphScope Color(OfficeColor? value) #Sets WordParagraph.Color: Gets or sets the text color using OfficeColor.
Parameters
- value OfficeIMO.OfficeColor?
- The value.
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>
- Configures the value.
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>
- Items to include in the combo box.
- alias string? = null
- Optional alias for the control.
- tag string? = null
- Optional tag for the control.
- defaultValue string? = null
- Optional default value to display; must match one of the provided items.
- configure System.Action<OfficeIMO.Word.WordComboBoxScope>? = null
- Configures the new item through its scope.
public WordParagraphScope Comment(string author, string initials, string comment, Action<WordCommentScope>? configure = null) #Add a comment to paragraph
Parameters
- author string
- The name of the commenting author
- initials string
- The initials of the commenting author
- comment string
- The comment text
- configure System.Action<OfficeIMO.Word.WordCommentScope>? = null
- Configures the new item through its 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
- The value; true when omitted.
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>
- Configures the value.
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
- Initial date value.
- alias string? = null
- Optional alias for the control.
- tag string? = null
- Optional tag for the control.
- configure System.Action<OfficeIMO.Word.WordDatePickerScope>? = null
- Configures the new item through its 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
- The value; true when omitted.
public WordParagraphScope DoubleStrikethrough(bool doubleStrikethrough = true) #Enables or disables double strikethrough on the text.
Parameters
- doubleStrikethrough bool = true
- Whether the text should be double struck.
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>
- Configures the value.
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>
- Items to include in the list.
- alias string? = null
- Optional alias for the control.
- tag string? = null
- Optional tag for the control.
- configure System.Action<OfficeIMO.Word.WordDropDownListScope>? = null
- Configures the new item through its scope.
public WordParagraphScope Emboss(bool isEmboss = true) #Enables or disables emboss effect on the text.
Parameters
- isEmboss bool = true
- Whether the text should be embossed.
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>
- Configures the value.
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>
- Configures the value.
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
- The value.
- configure System.Action<OfficeIMO.Word.WordEquationScope>? = null
- Configures the new item through its scope.
public WordParagraphScope Equation(string omml, Action<WordEquationScope>? configure = null) #Adds a mathematical equation represented as OMML XML.
Parameters
- omml string
- Office Math Markup Language (OMML) fragment.
- configure System.Action<OfficeIMO.Word.WordEquationScope>? = null
- Configures the new item through its scope.
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>
- Configures the value.
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
- The type of field to add.
- wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null
- The format of the field to add.
- customFormat string? = null
- Custom format string for date or time fields.
- advanced bool = false
- Use advanced field representation.
- parameters System.Collections.Generic.List<string>? = null
- 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
- Configures the new item through its 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
- Field code instance describing instructions and switches.
- wordFieldFormat OfficeIMO.Word.WordFieldFormat? = null
- Optional field format.
- customFormat string? = null
- Custom format string for date or time fields.
- advanced bool = false
- Use advanced field representation.
- configure System.Action<OfficeIMO.Word.WordFieldScope>? = null
- Configures the new item through its scope.
public WordParagraphScope Field(WordFieldBuilder builder, bool advanced = false, Action<WordFieldScope>? configure = null) #Adds a field constructed using WordFieldBuilder.
Parameters
- builder OfficeIMO.Word.WordFieldBuilder
- Field builder instance.
- advanced bool = false
- Use advanced field representation.
- configure System.Action<OfficeIMO.Word.WordFieldScope>? = null
- Configures the new item through its scope.
public WordParagraphScope FontFamily(string fontFamily) #Sets the font family for the text.
Parameters
- fontFamily string
- Name of the font family.
public WordParagraphScope FontFamilyComplexScript(string? value) #Sets WordParagraph.FontFamilyComplexScript: Gets or sets the complex script font family.
Parameters
- value string?
- The value.
public WordParagraphScope FontFamilyEastAsia(string? value) #Sets WordParagraph.FontFamilyEastAsia: Gets or sets the East Asia font family.
Parameters
- value string?
- The value.
public WordParagraphScope FontFamilyHighAnsi(string? value) #Sets WordParagraph.FontFamilyHighAnsi: Gets or sets the HighAnsi font family.
Parameters
- value string?
- The value.
public WordParagraphScope FontSize(OfficeLength fontSize) #Sets the font size for the text.
Parameters
- fontSize OfficeIMO.OfficeLength
- Font size in points.
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?
- The value.
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>
- Configures the value.
public WordParagraphScope Highlight(WordHighlightColor highlight) #Sets the highlight color for the text.
Parameters
- highlight OfficeIMO.Word.WordHighlightColor
- Highlight color.
public WordParagraphScope Highlight(WordHighlightColor? value) #Sets WordParagraph.Highlight: Gets or sets the highlight color applied to the run.
Parameters
- value OfficeIMO.Word.WordHighlightColor?
- The value.
public WordParagraphScope Hyperlink(Action<WordHyperLink> configure) #Configures WordParagraph.Hyperlink in place: Gets the hyperlink contained in this paragraph, if present.
Parameters
- configure System.Action<OfficeIMO.Word.WordHyperLink>
- Configures the value.
public WordParagraphScope HyperLink(string text, Uri uri, bool addStyle = false, string tooltip = "", bool history = true, Action<WordHyperLinkScope>? configure = null) #Add hyperlink with URL to a word document proceding from the paragraph that this was called on.
Parameters
- text string
- The text to insert as the URL.
- uri System.Uri
- The uri that this points to.
- addStyle bool = false
- The optional style of the link.
- tooltip string = ""
- The optional tooltip to display over the link.
- history bool = true
- The value.
- configure System.Action<OfficeIMO.Word.WordHyperLinkScope>? = null
- Configures the new item through its scope.
public WordParagraphScope HyperLink(string text, string anchor, bool addStyle = false, string tooltip = "", bool history = true, Action<WordHyperLinkScope>? configure = null) #Add hyperlink with an anchor to a word document proceding from the paragraph that this was called on.
Parameters
- text string
- The text to insert as the URL.
- anchor string
- The anchor to point at.
- addStyle bool = false
- The optional style of this link.
- tooltip string = ""
- The optional tooltip over this link.
- history bool = true
- The value.
- configure System.Action<OfficeIMO.Word.WordHyperLinkScope>? = null
- Configures the new item through its scope.
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>
- Configures the value.
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
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- options OfficeIMO.Word.WordImageOptions? = null
- The value.
- configure System.Action<OfficeIMO.Word.WordImageScope>? = null
- Configures the new item through its 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
- The value.
- fileName string
- The value.
- width OfficeIMO.OfficeLength? = null
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
- options OfficeIMO.Word.WordImageOptions? = null
- The value.
- configure System.Action<OfficeIMO.Word.WordImageScope>? = null
- Configures the new item through its 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?
- The value.
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?
- The value.
public WordParagraphScope IndentationFirstLine(OfficeLength? value) #Sets WordParagraph.IndentationFirstLine: Gets or sets the first line indentation as a physical length.
Parameters
- value OfficeIMO.OfficeLength?
- The value.
public WordParagraphScope IndentationHanging(OfficeLength? value) #Sets WordParagraph.IndentationHanging: Gets or sets the hanging indentation as a physical length.
Parameters
- value OfficeIMO.OfficeLength?
- The value.
public WordParagraphScope Italic(bool isItalic = true) #Sets the WordParagraph.Italic property.
Parameters
- isItalic bool = true
- Whether the text should be italic.
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
- The value; true when omitted.
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
- The value; true when omitted.
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
- The value; true when omitted.
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
- The value; true when omitted.
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?
- The value.
public WordParagraphScope Language(string language) #Sets the language for the text run.
Parameters
- language string
- Language tag, such as en-US or pl-PL.
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>
- Configures the value.
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?
- The value.
public WordParagraphScope LineSpacingAfter(OfficeLength? value) #Sets WordParagraph.LineSpacingAfter: Gets or sets the spacing after the paragraph as a physical length.
Parameters
- value OfficeIMO.OfficeLength?
- The value.
public WordParagraphScope LineSpacingBefore(OfficeLength? value) #Sets WordParagraph.LineSpacingBefore: Gets or sets the spacing before the paragraph as a physical length.
Parameters
- value OfficeIMO.OfficeLength?
- The value.
public WordParagraphScope List(WordListStyle style, Action<WordListScope>? configure = null) #Add a list after this paragraph.
Parameters
- style OfficeIMO.Word.WordListStyle
- The style of this list.
- configure System.Action<OfficeIMO.Word.WordListScope>? = null
- Configures the new item through its 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?
- The value.
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
- The value; true when omitted.
public WordParagraphScope Outline(bool isOutline = true) #Enables or disables outline effect on the text.
Parameters
- isOutline bool = true
- Whether the text should be outlined.
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?
- The value.
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
- The value; true when omitted.
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
- The value; true when omitted.
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
- If true adds a NUMPAGES field preceded by text " of ".
- format OfficeIMO.Word.WordFieldFormat? = null
- Optional field format to apply.
- separator string = " of "
- Text inserted between the current page and total pages fields.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its 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?
- The value.
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>
- Configures the value.
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>
- Configures the value.
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?
- The value.
public WordParagraphScope ShadingPattern(WordShadingPattern? value) #Sets WordParagraph.ShadingPattern: Get or set the paragraph shading pattern.
Parameters
- value OfficeIMO.Word.WordShadingPattern?
- The value.
public WordParagraphScope Shadow(bool isShadow = true) #Enables or disables shadow effect on the text.
Parameters
- isShadow bool = true
- Whether the text should have a shadow.
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>
- Configures the value.
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
- Type of shape to create.
- width OfficeIMO.OfficeLength
- Width, or the line end X coordinate.
- height OfficeIMO.OfficeLength
- Height, or the line end Y coordinate.
- fillColor OfficeIMO.OfficeColor? = null
- Fill color; white when omitted.
- strokeColor OfficeIMO.OfficeColor? = null
- Outline color; black when omitted.
- strokeWeight OfficeIMO.OfficeLength? = null
- Outline thickness; one point when omitted.
- arcSize double = 0.25
- Dimensionless corner roundness fraction.
- configure System.Action<OfficeIMO.Word.WordShapeScope>? = null
- Configures the new item through its scope.
public WordParagraphScope SmallCaps(bool isSmallCaps = true) #Enables or disables small caps formatting on the text.
Parameters
- isSmallCaps bool = true
- Whether the text should use small caps.
public WordParagraphScope SmartArt(WordSmartArtType type, Action<WordSmartArtScope>? configure = null) #Inserts a SmartArt diagram at the current position.
Parameters
- type OfficeIMO.Word.WordSmartArtType
- Layout of SmartArt to create.
- configure System.Action<OfficeIMO.Word.WordSmartArtScope>? = null
- Configures the new item through its scope.
public WordParagraphScope Spacing(OfficeLength? spacing) #Sets the character spacing for the text.
Parameters
- spacing OfficeIMO.OfficeLength?
- Signed character spacing, or null to remove the local value.
public WordParagraphScope Strikethrough(bool strikethrough = true) #Enables or disables single strikethrough on the text.
Parameters
- strikethrough bool = true
- Whether the text should be struck through.
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>
- Configures the value.
public WordParagraphScope Style(WordParagraphStyles style) #Sets the paragraph style.
Parameters
- style OfficeIMO.Word.WordParagraphStyles
- The style to apply.
public WordParagraphScope Style(WordStyle style) #Applies a paragraph style defined in this paragraph's document.
Parameters
- style OfficeIMO.Word.WordStyle
- A paragraph style from WordDocument.Styles.
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?
- The value.
public WordParagraphScope StyleId(string styleId) #Sets the paragraph style by identifier.
Parameters
- styleId string
- The style identifier.
public WordParagraphScope Subscript() #Set the text as subscript
public WordParagraphScope Superscript() #Set the text as superscript
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
- The value; true when omitted.
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
- The value; true when omitted.
public WordParagraphScope Tab(Action<WordParagraphScope>? configure = null) #Adds a Tab to a paragraph
Parameters
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its 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
- The signed tab position, rounded to the nearest twip.
- alignment OfficeIMO.Word.WordTabAlignment? = null
- The optional alignment for the tabs.
- leader OfficeIMO.Word.WordTabLeader? = null
- The optional rune to use before the tabs.
- configure System.Action<OfficeIMO.Word.WordTabStopScope>? = null
- Configures the new item through its scope.
public WordParagraphScope Text(string? text, Action<WordParagraphScope>? configure = null) #Add a text to existing paragraph
Parameters
- text string?
- The text to be added to the paragraph.
- configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null
- Configures the new item through its scope.
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>
- Configures the value.
public WordParagraphScope TextBox(string text, WordImageTextWrapping wrapTextImage, Action<WordTextBoxScope>? configure = null) #Add a text box to the document.
Parameters
- text string
- The text inside the text box.
- wrapTextImage OfficeIMO.Word.WordImageTextWrapping
- The text image wrapping settings.
- configure System.Action<OfficeIMO.Word.WordTextBoxScope>? = null
- Configures the new item through its scope.
public WordParagraphScope TextDirection(WordTextDirection? value) #Sets WordParagraph.TextDirection: Gets or sets the text flow direction for the paragraph.
Parameters
- value OfficeIMO.Word.WordTextDirection?
- The value.
public WordParagraphScope ThemeColor(WordThemeColor? value) #Sets WordParagraph.ThemeColor: Gets or sets the theme color applied to the run.
Parameters
- value OfficeIMO.Word.WordThemeColor?
- The value.
public WordParagraphScope Underline(WordUnderlineStyle underline) #Sets the underline style for the text.
Parameters
- underline OfficeIMO.Word.WordUnderlineStyle
- Underline style.
public WordParagraphScope Underline(WordUnderlineStyle? value) #Sets WordParagraph.Underline: Gets or sets the underline style for the run.
Parameters
- value OfficeIMO.Word.WordUnderlineStyle?
- The value.
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?
- The value.
public WordParagraphScope VerticalTextAlignment(WordVerticalTextPosition? verticalPositionValue) #Set the vertical text alignment
Parameters
- verticalPositionValue OfficeIMO.Word.WordVerticalTextPosition?
- The value.
Inherited Methods
Properties
public WordParagraph Model { get; } #The WordParagraph this scope edits, for plain C# inside a lambda.