WordStyleFluent
OfficeIMO.Word
The fluent methods of WordStyle, 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
- WordStyleFluent
Methods
public static WordStyle AvoidWidowAndOrphan(WordStyle wordStyle, bool? value = true) #Sets WordStyle.AvoidWidowAndOrphan: Gets or sets widow and orphan control.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.AvoidWidowAndOrphan = value; wordStyle.AvoidWidowAndOrphan(value);public static WordStyle BasedOnStyleId(WordStyle wordStyle, string? value) #Sets WordStyle.BasedOnStyleId: Gets or sets the identifier of the style this style inherits from.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.BasedOnStyleId = value; wordStyle.BasedOnStyleId(value);public static WordStyle Bold(WordStyle wordStyle, bool? value = true) #Sets WordStyle.Bold: Gets or sets bold text.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.Bold = value; wordStyle.Bold(value);public static WordStyle CapsStyle(WordStyle wordStyle, WordCapsStyle? value) #Sets WordStyle.CapsStyle: Gets or sets capitalization: all capitals, small capitals, or explicitly neither.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.Word.WordCapsStyle?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.CapsStyle = value; wordStyle.CapsStyle(value);public static WordStyle Color(WordStyle wordStyle, OfficeColor? value) #Sets WordStyle.Color: Gets or sets the text colour. A theme colour reads as its current value in the document theme.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeColor?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.Color = value; wordStyle.Color(value);public static WordStyle ContextualSpacing(WordStyle wordStyle, bool? value = true) #Sets WordStyle.ContextualSpacing: Gets or sets whether spacing between paragraphs of this style is suppressed.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.ContextualSpacing = value; wordStyle.ContextualSpacing(value);public static WordStyle Default(WordStyle wordStyle, bool value = true) #Sets WordStyle.IsDefault: Gets or sets whether this is the default style of its type, used by content that names no style. Making a style the default clears the flag on the previous default of the same type.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.IsDefault = value; wordStyle.Default(value);public static WordStyle FontFamily(WordStyle wordStyle, string? value) #Sets WordStyle.FontFamily: Gets or sets the font family. Reading a theme font returns the family the document theme names.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.FontFamily = value; wordStyle.FontFamily(value);public static WordStyle FontSize(WordStyle wordStyle, OfficeLength? value) #Sets WordStyle.FontSize: Gets or sets the font size, rounded to Word's half-point precision.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.FontSize = value; wordStyle.FontSize(value);public static WordStyle Highlight(WordStyle wordStyle, WordHighlightColor? value) #Sets WordStyle.Highlight: Gets or sets the highlight colour.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.Word.WordHighlightColor?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.Highlight = value; wordStyle.Highlight(value);public static WordStyle IndentationAfter(WordStyle wordStyle, OfficeLength? value) #Sets WordStyle.IndentationAfter: Gets or sets the indentation after the text (right in left-to-right paragraphs).
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.IndentationAfter = value; wordStyle.IndentationAfter(value);public static WordStyle IndentationBefore(WordStyle wordStyle, OfficeLength? value) #Sets WordStyle.IndentationBefore: Gets or sets the indentation before the text (left in left-to-right paragraphs).
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.IndentationBefore = value; wordStyle.IndentationBefore(value);public static WordStyle IndentationFirstLine(WordStyle wordStyle, OfficeLength? value) #Sets WordStyle.IndentationFirstLine: Gets or sets the first-line indentation. Setting it removes a hanging indentation.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.IndentationFirstLine = value; wordStyle.IndentationFirstLine(value);public static WordStyle IndentationHanging(WordStyle wordStyle, OfficeLength? value) #Sets WordStyle.IndentationHanging: Gets or sets the hanging indentation. Setting it removes a first-line indentation.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.IndentationHanging = value; wordStyle.IndentationHanging(value);public static WordStyle Italic(WordStyle wordStyle, bool? value = true) #Sets WordStyle.Italic: Gets or sets italic text.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.Italic = value; wordStyle.Italic(value);public static WordStyle KeepLinesTogether(WordStyle wordStyle, bool? value = true) #Sets WordStyle.KeepLinesTogether: Gets or sets whether all lines of a paragraph stay on one page.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.KeepLinesTogether = value; wordStyle.KeepLinesTogether(value);public static WordStyle KeepWithNext(WordStyle wordStyle, bool? value = true) #Sets WordStyle.KeepWithNext: Gets or sets whether paragraphs stay on the same page as the next paragraph.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.KeepWithNext = value; wordStyle.KeepWithNext(value);public static WordStyle LineSpacing(WordStyle wordStyle, WordLineSpacing? value) #Sets WordStyle.LineSpacing: Gets or sets line spacing as a multiple, an exact height or a minimum height.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.Word.WordLineSpacing?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.LineSpacing = value; wordStyle.LineSpacing(value);public static WordStyle LineSpacingAfter(WordStyle wordStyle, OfficeLength? value) #Sets WordStyle.LineSpacingAfter: Gets or sets the spacing after the paragraph.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.LineSpacingAfter = value; wordStyle.LineSpacingAfter(value);public static WordStyle LineSpacingBefore(WordStyle wordStyle, OfficeLength? value) #Sets WordStyle.LineSpacingBefore: Gets or sets the spacing before the paragraph.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeLength?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.LineSpacingBefore = value; wordStyle.LineSpacingBefore(value);public static WordStyle LinkedStyleId(WordStyle wordStyle, string? value) #Sets WordStyle.LinkedStyleId: Gets or sets the identifier of the linked style: the character style paired with a paragraph style, or the paragraph style paired with a character style.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.LinkedStyleId = value; wordStyle.LinkedStyleId(value);public static WordStyle List(WordStyle wordStyle, WordList? list, int level = 0) #Numbers paragraphs that use this style with a level of a list, or removes the numbering.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- list OfficeIMO.Word.WordList?
- The list to number with, or null to remove numbering.
- level int = 0
- The zero-based list level.
public static WordStyle List(WordStyle wordStyle, Action<WordList> configure) #Configures WordStyle.List in place: Gets the list that numbers paragraphs using this style, or null.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- configure System.Action<OfficeIMO.Word.WordList>
- Configures the value.
public static WordStyle MirrorIndents(WordStyle wordStyle, bool? value = true) #Sets WordStyle.MirrorIndents: Gets or sets whether the indents before and after the text are used as inside and outside indents.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.MirrorIndents = value; wordStyle.MirrorIndents(value);public static WordStyle Name(WordStyle wordStyle, string value) #Sets WordStyle.Name: Gets or sets the style name shown in Word. Names are unique within a document, ignoring case.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.Name = value; wordStyle.Name(value);public static WordStyle NextStyleId(WordStyle wordStyle, string? value) #Sets WordStyle.NextStyleId: Gets or sets the identifier of the paragraph style Word uses for the next paragraph.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.NextStyleId = value; wordStyle.NextStyleId(value);public static WordStyle OutlineLevel(WordStyle wordStyle, int? value) #Sets WordStyle.OutlineLevel: Gets or sets the outline level: 0-8 for heading levels 1-9, or 9 for body text.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value int?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.OutlineLevel = value; wordStyle.OutlineLevel(value);public static WordStyle PageBreakBefore(WordStyle wordStyle, bool? value = true) #Sets WordStyle.PageBreakBefore: Gets or sets whether paragraphs start on a new page.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.PageBreakBefore = value; wordStyle.PageBreakBefore(value);public static WordStyle ParagraphAlignment(WordStyle wordStyle, WordParagraphAlignment? value) #Sets WordStyle.ParagraphAlignment: Gets or sets paragraph alignment.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.Word.WordParagraphAlignment?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.ParagraphAlignment = value; wordStyle.ParagraphAlignment(value);public static WordStyle Primary(WordStyle wordStyle, bool value = true) #Sets WordStyle.IsPrimary: Gets or sets whether Word shows the style in the Styles gallery.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.IsPrimary = value; wordStyle.Primary(value);public static WordStyle ShadingFillColor(WordStyle wordStyle, OfficeColor? value) #Sets WordStyle.ShadingFillColor: Gets or sets the paragraph background colour.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.OfficeColor?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.ShadingFillColor = value; wordStyle.ShadingFillColor(value);public static WordStyle Strikethrough(WordStyle wordStyle, bool? value = true) #Sets WordStyle.Strikethrough: Gets or sets single strikethrough.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.Strikethrough = value; wordStyle.Strikethrough(value);public static WordStyle SuppressAutoHyphens(WordStyle wordStyle, bool? value = true) #Sets WordStyle.SuppressAutoHyphens: Gets or sets whether automatic hyphenation is suppressed for paragraphs of this style.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.SuppressAutoHyphens = value; wordStyle.SuppressAutoHyphens(value);public static WordStyle SuppressLineNumbers(WordStyle wordStyle, bool? value = true) #Sets WordStyle.SuppressLineNumbers: Gets or sets whether line numbers are suppressed for paragraphs of this style.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
wordStyle.SuppressLineNumbers = value; wordStyle.SuppressLineNumbers(value);public static WordStyle TableBorders(WordStyle wordStyle, WordBorderStyle style, OfficeLength size, OfficeColor color) #Sets the outside and inside borders that this table style draws around and between cells.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- style OfficeIMO.Word.WordBorderStyle
- The border line style; WordBorderStyle.None removes the borders.
- size OfficeIMO.OfficeLength
- The border width, rounded to an eighth of a point.
- color OfficeIMO.OfficeColor
- The border colour.
public static WordStyle ThemeColor(WordStyle wordStyle, WordThemeColor? value) #Sets WordStyle.ThemeColor: Gets or sets the theme colour of the text, so it follows changes to the document theme.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.Word.WordThemeColor?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.ThemeColor = value; wordStyle.ThemeColor(value);public static WordStyle ThemeFont(WordStyle wordStyle, WordThemeFont? value) #Sets WordStyle.ThemeFont: Gets or sets which theme font the style uses, so the text follows changes to the document theme.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.Word.WordThemeFont?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.ThemeFont = value; wordStyle.ThemeFont(value);public static WordStyle Underline(WordStyle wordStyle, WordUnderlineStyle? value) #Sets WordStyle.Underline: Gets or sets the underline.
Parameters
- wordStyle OfficeIMO.Word.WordStyle
- The instance.
- value OfficeIMO.Word.WordUnderlineStyle?
- The value.
Examples
// C# initializer or property // C# fluent
wordStyle.Underline = value; wordStyle.Underline(value);