# WordStyleFluent

The fluent methods of WordStyle, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordStyle](/api/word/officeimo-word-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

Filter members 

Show inherited

## Methods

`public static WordStyle AvoidWidowAndOrphan(WordStyle wordStyle, bool? value = true)` [#](#method-avoidwidowandorphan-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.AvoidWidowAndOrphan](/api/word/officeimo-word-wordstyle/): Gets or sets widow and orphan control.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
wordStyle.AvoidWidowAndOrphan = value;    wordStyle.AvoidWidowAndOrphan(value);
```

`public static WordStyle BasedOnStyleId(WordStyle wordStyle, string? value)` [#](#method-basedonstyleid-officeimo-word-wordstyle-string)

Sets [WordStyle.BasedOnStyleId](/api/word/officeimo-word-wordstyle/): Gets or sets the identifier of the style this style inherits from.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value string? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
wordStyle.BasedOnStyleId = value;    wordStyle.BasedOnStyleId(value);
```

`public static WordStyle Bold(WordStyle wordStyle, bool? value = true)` [#](#method-bold-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.Bold](/api/word/officeimo-word-wordstyle/): Gets or sets bold text.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.Bold = value;          wordStyle.Bold(value);
```

`public static WordStyle CapsStyle(WordStyle wordStyle, WordCapsStyle? value)` [#](#method-capsstyle-officeimo-word-wordstyle-nullable-officeimo-word-wordcapsstyle)

Sets [WordStyle.CapsStyle](/api/word/officeimo-word-wordstyle/): Gets or sets capitalization: all capitals, small capitals, or explicitly neither.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.Word.WordCapsStyle? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.CapsStyle = value;     wordStyle.CapsStyle(value);
```

`public static WordStyle Color(WordStyle wordStyle, OfficeColor? value)` [#](#method-color-officeimo-word-wordstyle-nullable-officeimo-officecolor)

Sets [WordStyle.Color](/api/word/officeimo-word-wordstyle/): Gets or sets the text colour. A theme colour reads as its current value in the document theme.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.Color = value;         wordStyle.Color(value);
```

`public static WordStyle ContextualSpacing(WordStyle wordStyle, bool? value = true)` [#](#method-contextualspacing-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.ContextualSpacing](/api/word/officeimo-word-wordstyle/): Gets or sets whether spacing between paragraphs of this style is suppressed.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordStyle.ContextualSpacing = value;    wordStyle.ContextualSpacing(value);
```

`public static WordStyle Default(WordStyle wordStyle, bool value = true)` [#](#method-default-officeimo-word-wordstyle-boolean)

Sets [WordStyle.IsDefault](/api/word/officeimo-word-wordstyle/): 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 required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.IsDefault = value;     wordStyle.Default(value);
```

`public static WordStyle FontFamily(WordStyle wordStyle, string? value)` [#](#method-fontfamily-officeimo-word-wordstyle-string)

Sets [WordStyle.FontFamily](/api/word/officeimo-word-wordstyle/): Gets or sets the font family. Reading a theme font returns the family the document theme names.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value string? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.FontFamily = value;    wordStyle.FontFamily(value);
```

`public static WordStyle FontSize(WordStyle wordStyle, OfficeLength? value)` [#](#method-fontsize-officeimo-word-wordstyle-nullable-officeimo-officelength)

Sets [WordStyle.FontSize](/api/word/officeimo-word-wordstyle/): Gets or sets the font size, rounded to Word's half-point precision.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.FontSize = value;      wordStyle.FontSize(value);
```

`public static WordStyle Highlight(WordStyle wordStyle, WordHighlightColor? value)` [#](#method-highlight-officeimo-word-wordstyle-nullable-officeimo-word-wordhighlightcolor)

Sets [WordStyle.Highlight](/api/word/officeimo-word-wordstyle/): Gets or sets the highlight colour.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.Word.WordHighlightColor? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.Highlight = value;     wordStyle.Highlight(value);
```

`public static WordStyle IndentationAfter(WordStyle wordStyle, OfficeLength? value)` [#](#method-indentationafter-officeimo-word-wordstyle-nullable-officeimo-officelength)

Sets [WordStyle.IndentationAfter](/api/word/officeimo-word-wordstyle/): Gets or sets the indentation after the text (right in left-to-right paragraphs).

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordStyle.IndentationAfter = value;    wordStyle.IndentationAfter(value);
```

`public static WordStyle IndentationBefore(WordStyle wordStyle, OfficeLength? value)` [#](#method-indentationbefore-officeimo-word-wordstyle-nullable-officeimo-officelength)

Sets [WordStyle.IndentationBefore](/api/word/officeimo-word-wordstyle/): Gets or sets the indentation before the text (left in left-to-right paragraphs).

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordStyle.IndentationBefore = value;    wordStyle.IndentationBefore(value);
```

`public static WordStyle IndentationFirstLine(WordStyle wordStyle, OfficeLength? value)` [#](#method-indentationfirstline-officeimo-word-wordstyle-nullable-officeimo-officelength)

Sets [WordStyle.IndentationFirstLine](/api/word/officeimo-word-wordstyle/): Gets or sets the first-line indentation. Setting it removes a hanging indentation.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
wordStyle.IndentationFirstLine = value;    wordStyle.IndentationFirstLine(value);
```

`public static WordStyle IndentationHanging(WordStyle wordStyle, OfficeLength? value)` [#](#method-indentationhanging-officeimo-word-wordstyle-nullable-officeimo-officelength)

Sets [WordStyle.IndentationHanging](/api/word/officeimo-word-wordstyle/): Gets or sets the hanging indentation. Setting it removes a first-line indentation.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
wordStyle.IndentationHanging = value;    wordStyle.IndentationHanging(value);
```

`public static WordStyle Italic(WordStyle wordStyle, bool? value = true)` [#](#method-italic-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.Italic](/api/word/officeimo-word-wordstyle/): Gets or sets italic text.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.Italic = value;        wordStyle.Italic(value);
```

`public static WordStyle KeepLinesTogether(WordStyle wordStyle, bool? value = true)` [#](#method-keeplinestogether-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.KeepLinesTogether](/api/word/officeimo-word-wordstyle/): Gets or sets whether all lines of a paragraph stay on one page.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordStyle.KeepLinesTogether = value;    wordStyle.KeepLinesTogether(value);
```

`public static WordStyle KeepWithNext(WordStyle wordStyle, bool? value = true)` [#](#method-keepwithnext-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.KeepWithNext](/api/word/officeimo-word-wordstyle/): Gets or sets whether paragraphs stay on the same page as the next paragraph.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
wordStyle.KeepWithNext = value;    wordStyle.KeepWithNext(value);
```

`public static WordStyle LineSpacing(WordStyle wordStyle, WordLineSpacing? value)` [#](#method-linespacing-officeimo-word-wordstyle-nullable-officeimo-word-wordlinespacing)

Sets [WordStyle.LineSpacing](/api/word/officeimo-word-wordstyle/): Gets or sets line spacing as a multiple, an exact height or a minimum height.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.Word.WordLineSpacing? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordStyle.LineSpacing = value;    wordStyle.LineSpacing(value);
```

`public static WordStyle LineSpacingAfter(WordStyle wordStyle, OfficeLength? value)` [#](#method-linespacingafter-officeimo-word-wordstyle-nullable-officeimo-officelength)

Sets [WordStyle.LineSpacingAfter](/api/word/officeimo-word-wordstyle/): Gets or sets the spacing after the paragraph.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordStyle.LineSpacingAfter = value;    wordStyle.LineSpacingAfter(value);
```

`public static WordStyle LineSpacingBefore(WordStyle wordStyle, OfficeLength? value)` [#](#method-linespacingbefore-officeimo-word-wordstyle-nullable-officeimo-officelength)

Sets [WordStyle.LineSpacingBefore](/api/word/officeimo-word-wordstyle/): Gets or sets the spacing before the paragraph.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordStyle.LineSpacingBefore = value;    wordStyle.LineSpacingBefore(value);
```

`public static WordStyle LinkedStyleId(WordStyle wordStyle, string? value)` [#](#method-linkedstyleid-officeimo-word-wordstyle-string)

Sets [WordStyle.LinkedStyleId](/api/word/officeimo-word-wordstyle/): 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 required**

The instance.

**value string? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordStyle.LinkedStyleId = value;    wordStyle.LinkedStyleId(value);
```

List 2 overloads

`public static WordStyle List(WordStyle wordStyle, WordList? list, int level = 0)` [#](#method-list-officeimo-word-wordstyle-officeimo-word-wordlist-int32)

Numbers paragraphs that use this style with a level of a list, or removes the numbering.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**list OfficeIMO.Word.WordList? required**

The list to number with, or null to remove numbering.

**level int = 0 optional**

The zero-based list level.

Returns

`WordStyle` The same instance.

`public static WordStyle List(WordStyle wordStyle, Action<WordList> configure)` [#](#method-list-officeimo-word-wordstyle-action-officeimo-word-wordlist)

Configures [WordStyle.List](/api/word/officeimo-word-wordstyle/) in place: Gets the list that numbers paragraphs using this style, or null.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**configure System.Action<OfficeIMO.Word.WordList> required**

Configures the value.

Returns

`WordStyle` The same instance.

`public static WordStyle MirrorIndents(WordStyle wordStyle, bool? value = true)` [#](#method-mirrorindents-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.MirrorIndents](/api/word/officeimo-word-wordstyle/): Gets or sets whether the indents before and after the text are used as inside and outside indents.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordStyle.MirrorIndents = value;    wordStyle.MirrorIndents(value);
```

`public static WordStyle Name(WordStyle wordStyle, string value)` [#](#method-name-officeimo-word-wordstyle-string)

Sets [WordStyle.Name](/api/word/officeimo-word-wordstyle/): Gets or sets the style name shown in Word. Names are unique within a document, ignoring case.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value string required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.Name = value;          wordStyle.Name(value);
```

`public static WordStyle NextStyleId(WordStyle wordStyle, string? value)` [#](#method-nextstyleid-officeimo-word-wordstyle-string)

Sets [WordStyle.NextStyleId](/api/word/officeimo-word-wordstyle/): Gets or sets the identifier of the paragraph style Word uses for the next paragraph.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value string? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordStyle.NextStyleId = value;    wordStyle.NextStyleId(value);
```

`public static WordStyle OutlineLevel(WordStyle wordStyle, int? value)` [#](#method-outlinelevel-officeimo-word-wordstyle-nullable-system-int32)

Sets [WordStyle.OutlineLevel](/api/word/officeimo-word-wordstyle/): Gets or sets the outline level: 0-8 for heading levels 1-9, or 9 for body text.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value int? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
wordStyle.OutlineLevel = value;    wordStyle.OutlineLevel(value);
```

`public static WordStyle PageBreakBefore(WordStyle wordStyle, bool? value = true)` [#](#method-pagebreakbefore-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.PageBreakBefore](/api/word/officeimo-word-wordstyle/): Gets or sets whether paragraphs start on a new page.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
wordStyle.PageBreakBefore = value;    wordStyle.PageBreakBefore(value);
```

`public static WordStyle ParagraphAlignment(WordStyle wordStyle, WordParagraphAlignment? value)` [#](#method-paragraphalignment-officeimo-word-wordstyle-nullable-officeimo-word-wordparagraphalignment)

Sets [WordStyle.ParagraphAlignment](/api/word/officeimo-word-wordstyle/): Gets or sets paragraph alignment.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.Word.WordParagraphAlignment? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
wordStyle.ParagraphAlignment = value;    wordStyle.ParagraphAlignment(value);
```

`public static WordStyle Primary(WordStyle wordStyle, bool value = true)` [#](#method-primary-officeimo-word-wordstyle-boolean)

Sets [WordStyle.IsPrimary](/api/word/officeimo-word-wordstyle/): Gets or sets whether Word shows the style in the Styles gallery.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.IsPrimary = value;     wordStyle.Primary(value);
```

`public static WordStyle ShadingFillColor(WordStyle wordStyle, OfficeColor? value)` [#](#method-shadingfillcolor-officeimo-word-wordstyle-nullable-officeimo-officecolor)

Sets [WordStyle.ShadingFillColor](/api/word/officeimo-word-wordstyle/): Gets or sets the paragraph background colour.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordStyle.ShadingFillColor = value;    wordStyle.ShadingFillColor(value);
```

`public static WordStyle Strikethrough(WordStyle wordStyle, bool? value = true)` [#](#method-strikethrough-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.Strikethrough](/api/word/officeimo-word-wordstyle/): Gets or sets single strikethrough.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordStyle.Strikethrough = value;    wordStyle.Strikethrough(value);
```

`public static WordStyle SuppressAutoHyphens(WordStyle wordStyle, bool? value = true)` [#](#method-suppressautohyphens-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.SuppressAutoHyphens](/api/word/officeimo-word-wordstyle/): Gets or sets whether automatic hyphenation is suppressed for paragraphs of this style.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
wordStyle.SuppressAutoHyphens = value;    wordStyle.SuppressAutoHyphens(value);
```

`public static WordStyle SuppressLineNumbers(WordStyle wordStyle, bool? value = true)` [#](#method-suppresslinenumbers-officeimo-word-wordstyle-nullable-system-boolean)

Sets [WordStyle.SuppressLineNumbers](/api/word/officeimo-word-wordstyle/): Gets or sets whether line numbers are suppressed for paragraphs of this style.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value bool? = true optional**

The value; true when omitted.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
wordStyle.SuppressLineNumbers = value;    wordStyle.SuppressLineNumbers(value);
```

`public static WordStyle TableBorders(WordStyle wordStyle, WordBorderStyle style, OfficeLength size, OfficeColor color)` [#](#method-tableborders-officeimo-word-wordstyle-officeimo-word-wordborderstyle-officeimo-officelength-officeimo-officecolor)

Sets the outside and inside borders that this table style draws around and between cells.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**style OfficeIMO.Word.WordBorderStyle required**

The border line style; [WordBorderStyle.None](/api/word/officeimo-word-wordborderstyle/) removes the borders.

**size OfficeIMO.OfficeLength required**

The border width, rounded to an eighth of a point.

**color OfficeIMO.OfficeColor required**

The border colour.

Returns

`WordStyle` The same instance.

`public static WordStyle ThemeColor(WordStyle wordStyle, WordThemeColor? value)` [#](#method-themecolor-officeimo-word-wordstyle-nullable-officeimo-word-wordthemecolor)

Sets [WordStyle.ThemeColor](/api/word/officeimo-word-wordstyle/): Gets or sets the theme colour of the text, so it follows changes to the document theme.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.Word.WordThemeColor? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.ThemeColor = value;    wordStyle.ThemeColor(value);
```

`public static WordStyle ThemeFont(WordStyle wordStyle, WordThemeFont? value)` [#](#method-themefont-officeimo-word-wordstyle-nullable-officeimo-word-wordthemefont)

Sets [WordStyle.ThemeFont](/api/word/officeimo-word-wordstyle/): Gets or sets which theme font the style uses, so the text follows changes to the document theme.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.Word.WordThemeFont? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.ThemeFont = value;     wordStyle.ThemeFont(value);
```

`public static WordStyle Underline(WordStyle wordStyle, WordUnderlineStyle? value)` [#](#method-underline-officeimo-word-wordstyle-nullable-officeimo-word-wordunderlinestyle)

Sets [WordStyle.Underline](/api/word/officeimo-word-wordstyle/): Gets or sets the underline.

Parameters

**wordStyle OfficeIMO.Word.WordStyle required**

The instance.

**value OfficeIMO.Word.WordUnderlineStyle? required**

The value.

Returns

`WordStyle` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordStyle.Underline = value;     wordStyle.Underline(value);
```

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:ADA816CED388ECB929C4E460EC085DA22EA8B5D2C1357A169C1F7117405CD006 -->
