# WordStructuredDocumentTagFluent

The fluent methods of WordStructuredDocumentTag, 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 [WordStructuredDocumentTag](/api/word/officeimo-word-wordstructureddocumenttag/), 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
- WordStructuredDocumentTagFluent

Filter members 

Show inherited

## Methods

`public static TSelf Bold<TSelf>(TSelf wordStructuredDocumentTag, bool isBold = true)` [#](#method-bold-boolean)

Sets the content control text to bold and returns the instance for chaining.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**isBold bool = true optional**

Whether the text should be bold.

Returns

`TSelf` The same instance.

`public static TSelf Color<TSelf>(TSelf wordStructuredDocumentTag, OfficeColor? color)` [#](#method-color-nullable-officeimo-officecolor)

Sets the text color and returns the instance for chaining.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**color OfficeIMO.OfficeColor? required**

Text color, or null to clear.

Returns

`TSelf` The same instance.

`public static TSelf FontFamily<TSelf>(TSelf wordStructuredDocumentTag, string fontFamily)` [#](#method-fontfamily-string)

Sets the font family and returns the instance for chaining.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**fontFamily string required**

Name of the font family.

Returns

`TSelf` The same instance.

FontSize``1 2 overloads

`public static TSelf FontSize<TSelf>(TSelf wordStructuredDocumentTag, OfficeLength fontSize)` [#](#method-fontsize-officeimo-officelength)

Sets the font size in points and returns the instance for chaining.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**fontSize OfficeIMO.OfficeLength required**

Font size in points.

Returns

`TSelf` The same instance.

`public static TSelf FontSize<TSelf>(TSelf wordStructuredDocumentTag, OfficeLength? value)` [#](#method-fontsize-nullable-officeimo-officelength)

Sets [WordStructuredDocumentTag.FontSize](/api/word/officeimo-word-wordstructureddocumenttag/): Gets or sets the font size for the content control text.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf Highlight<TSelf>(TSelf wordStructuredDocumentTag, WordHighlightColor? highlight)` [#](#method-highlight-nullable-officeimo-word-wordhighlightcolor)

Sets the highlight color and returns the instance for chaining.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**highlight OfficeIMO.Word.WordHighlightColor? required**

Highlight color, or null to clear.

Returns

`TSelf` The same instance.

`public static TSelf Italic<TSelf>(TSelf wordStructuredDocumentTag, bool isItalic = true)` [#](#method-italic-boolean)

Sets the content control text to italic and returns the instance for chaining.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**isItalic bool = true optional**

Whether the text should be italic.

Returns

`TSelf` The same instance.

`public static TSelf Tag<TSelf>(TSelf wordStructuredDocumentTag, string? value)` [#](#method-tag-string)

Sets [WordStructuredDocumentTag.Tag](/api/word/officeimo-word-wordstructureddocumenttag/): Gets or sets the tag value for this content control.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
wordStructuredDocumentTag.Tag = value;    wordStructuredDocumentTag.Tag(value);
```

`public static TSelf Text<TSelf>(TSelf wordStructuredDocumentTag, string? value)` [#](#method-text-string)

Sets [WordStructuredDocumentTag.Text](/api/word/officeimo-word-wordstructureddocumenttag/): Gets or sets the inner text of the content control.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property              // C# fluent
wordStructuredDocumentTag.Text = value;    wordStructuredDocumentTag.Text(value);
```

`public static TSelf Underline<TSelf>(TSelf wordStructuredDocumentTag, WordUnderlineStyle? underline)` [#](#method-underline-nullable-officeimo-word-wordunderlinestyle)

Sets the underline style and returns the instance for chaining.

Type Parameters

**TSelf**

Parameters

**wordStructuredDocumentTag TSelf required**

The instance.

**underline OfficeIMO.Word.WordUnderlineStyle? required**

Underline style, or null to clear.

Returns

`TSelf` The same instance.

## 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:0B76C854E4EE7E2D271D2FC1239E7F07E2E1A8D64C67E691C9602E0E9759F8CD -->
