# WordTextBoxFluent

The fluent methods of WordTextBox, 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 [WordTextBox](/api/word/officeimo-word-wordtextbox/), 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
- WordTextBoxFluent

Filter members 

Show inherited

## Methods

`public static TSelf AutoFitToTextSize<TSelf>(TSelf wordTextBox, bool value = true)` [#](#method-autofittotextsize-boolean)

Sets [WordTextBox.AutoFitToTextSize](/api/word/officeimo-word-wordtextbox/): Gets or sets whether the box resizes to fit its text.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
wordTextBox.AutoFitToTextSize = value;    wordTextBox.AutoFitToTextSize(value);
```

`public static TSelf AutoFit<TSelf>(TSelf wordTextBox, WordTextBoxAutoFitType value)` [#](#method-autofit-officeimo-word-wordtextboxautofittype)

Sets [WordTextBox.AutoFit](/api/word/officeimo-word-wordtextbox/): Gets or sets how the box automatically fits its text.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.Word.WordTextBoxAutoFitType required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordTextBox.AutoFit = value;     wordTextBox.AutoFit(value);
```

`public static TSelf Description<TSelf>(TSelf wordTextBox, string? value)` [#](#method-description-string)

Sets [WordTextBox.Description](/api/word/officeimo-word-wordtextbox/): Gets or sets the accessibility description for the text box.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordTextBox.Description = value;    wordTextBox.Description(value);
```

`public static TSelf FillColor<TSelf>(TSelf wordTextBox, OfficeColor? value)` [#](#method-fillcolor-nullable-officeimo-officecolor)

Sets [WordTextBox.FillColor](/api/word/officeimo-word-wordtextbox/): Gets or sets the DrawingML solid RGB fill.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordTextBox.FillColor = value;    wordTextBox.FillColor(value);
```

`public static TSelf Height<TSelf>(TSelf wordTextBox, OfficeLength value)` [#](#method-height-officeimo-officelength)

Sets [WordTextBox.Height](/api/word/officeimo-word-wordtextbox/): Gets or sets the physical height of the box.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordTextBox.Height = value;      wordTextBox.Height(value);
```

`public static TSelf HorizontalAlignment<TSelf>(TSelf wordTextBox, WordTextBoxHorizontalAlignment value)` [#](#method-horizontalalignment-officeimo-word-wordtextboxhorizontalalignment)

Sets [WordTextBox.HorizontalAlignment](/api/word/officeimo-word-wordtextbox/): Gets or sets the horizontal alignment for anchored boxes.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.Word.WordTextBoxHorizontalAlignment required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
wordTextBox.HorizontalAlignment = value;    wordTextBox.HorizontalAlignment(value);
```

`public static TSelf HorizontalPositionOffset<TSelf>(TSelf wordTextBox, OfficeLength? value)` [#](#method-horizontalpositionoffset-nullable-officeimo-officelength)

Sets [WordTextBox.HorizontalPositionOffset](/api/word/officeimo-word-wordtextbox/): Gets or sets a horizontal offset in physical units.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
wordTextBox.HorizontalPositionOffset = value;    wordTextBox.HorizontalPositionOffset(value);
```

`public static TSelf HorizontalPositionRelativeFrom<TSelf>(TSelf wordTextBox, WordHorizontalRelativePosition? value)` [#](#method-horizontalpositionrelativefrom-nullable-officeimo-word-wordhorizontalrelativeposition)

Sets [WordTextBox.HorizontalPositionRelativeFrom](/api/word/officeimo-word-wordtextbox/): Gets or sets the horizontal position reference point.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.Word.WordHorizontalRelativePosition? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                          // C# fluent
wordTextBox.HorizontalPositionRelativeFrom = value;    wordTextBox.HorizontalPositionRelativeFrom(value);
```

`public static TSelf RelativeHeightPercentage<TSelf>(TSelf wordTextBox, int? value)` [#](#method-relativeheightpercentage-nullable-system-int32)

Sets [WordTextBox.RelativeHeightPercentage](/api/word/officeimo-word-wordtextbox/): Gets or sets the relative height percentage.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value int? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
wordTextBox.RelativeHeightPercentage = value;    wordTextBox.RelativeHeightPercentage(value);
```

`public static TSelf RelativeWidthPercentage<TSelf>(TSelf wordTextBox, int? value)` [#](#method-relativewidthpercentage-nullable-system-int32)

Sets [WordTextBox.RelativeWidthPercentage](/api/word/officeimo-word-wordtextbox/): Gets or sets the relative width percentage.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value int? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                   // C# fluent
wordTextBox.RelativeWidthPercentage = value;    wordTextBox.RelativeWidthPercentage(value);
```

`public static TSelf SizeRelativeHorizontally<TSelf>(TSelf wordTextBox, WordTextBoxHorizontalSizeReference? value)` [#](#method-sizerelativehorizontally-nullable-officeimo-word-wordtextboxhorizontalsizereference)

Sets [WordTextBox.SizeRelativeHorizontally](/api/word/officeimo-word-wordtextbox/): Gets or sets the horizontal reference used by relative sizing.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.Word.WordTextBoxHorizontalSizeReference? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                    // C# fluent
wordTextBox.SizeRelativeHorizontally = value;    wordTextBox.SizeRelativeHorizontally(value);
```

`public static TSelf VerticalPositionOffset<TSelf>(TSelf wordTextBox, OfficeLength? value)` [#](#method-verticalpositionoffset-nullable-officeimo-officelength)

Sets [WordTextBox.VerticalPositionOffset](/api/word/officeimo-word-wordtextbox/): Gets or sets a vertical offset in physical units.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                  // C# fluent
wordTextBox.VerticalPositionOffset = value;    wordTextBox.VerticalPositionOffset(value);
```

`public static TSelf VerticalPositionRelativeFrom<TSelf>(TSelf wordTextBox, WordVerticalRelativePosition value)` [#](#method-verticalpositionrelativefrom-officeimo-word-wordverticalrelativeposition)

Sets [WordTextBox.VerticalPositionRelativeFrom](/api/word/officeimo-word-wordtextbox/): Gets or sets the vertical position reference point.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.Word.WordVerticalRelativePosition required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property                        // C# fluent
wordTextBox.VerticalPositionRelativeFrom = value;    wordTextBox.VerticalPositionRelativeFrom(value);
```

`public static TSelf Width<TSelf>(TSelf wordTextBox, OfficeLength value)` [#](#method-width-officeimo-officelength)

Sets [WordTextBox.Width](/api/word/officeimo-word-wordtextbox/): Gets or sets the physical width of the box.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.OfficeLength required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordTextBox.Width = value;       wordTextBox.Width(value);
```

`public static TSelf WrapText<TSelf>(TSelf wordTextBox, WordImageTextWrapping? value)` [#](#method-wraptext-nullable-officeimo-word-wordimagetextwrapping)

Sets [WordTextBox.WrapText](/api/word/officeimo-word-wordtextbox/): Gets or sets the text wrapping mode for the box.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value OfficeIMO.Word.WordImageTextWrapping? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordTextBox.WrapText = value;    wordTextBox.WrapText(value);
```

`public static TSelf ZOrder<TSelf>(TSelf wordTextBox, uint value)` [#](#method-zorder-uint32)

Sets [WordTextBox.ZOrder](/api/word/officeimo-word-wordtextbox/): Gets or sets the DrawingML anchor stacking order.

Type Parameters

**TSelf**

Parameters

**wordTextBox TSelf required**

The instance.

**value uint required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordTextBox.ZOrder = value;      wordTextBox.ZOrder(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:718346A0C427A0CF46D5A2BFB1FFA27881C0F18DC2A01955AE3790A9B9D1E5CD -->
