# WordTextBoxScope

Edits one WordTextBox: its fluent methods and keywords, each returning this scope.

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordTextBox](/api/word/officeimo-word-wordtextbox/): its fluent methods and keywords, each returning this scope.

## Inheritance

- object
- WordTextBoxScope

## Usage

Explore 20 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 16

- Method [WordTextBoxScope.AutoFit](/api/word/officeimo-word-wordtextboxscope/#method-autofit-officeimo-word-wordtextboxautofittype)
- Method [WordTextBoxScope.AutoFitToTextSize](/api/word/officeimo-word-wordtextboxscope/#method-autofittotextsize-boolean)
- Method [WordTextBoxScope.Description](/api/word/officeimo-word-wordtextboxscope/#method-description-string)
- Method [WordTextBoxScope.FillColor](/api/word/officeimo-word-wordtextboxscope/#method-fillcolor-nullable-officeimo-officecolor)
- Method [WordTextBoxScope.Height](/api/word/officeimo-word-wordtextboxscope/#method-height-officeimo-officelength)
- Method [WordTextBoxScope.HorizontalAlignment](/api/word/officeimo-word-wordtextboxscope/#method-horizontalalignment-officeimo-word-wordtextboxhorizontalalignment)
- Method [WordTextBoxScope.HorizontalPositionOffset](/api/word/officeimo-word-wordtextboxscope/#method-horizontalpositionoffset-nullable-officeimo-officelength)
- Method [WordTextBoxScope.HorizontalPositionRelativeFrom](/api/word/officeimo-word-wordtextboxscope/#method-horizontalpositionrelativefrom-nullable-officeimo-word-wordhorizontalrelativeposition)
- Method [WordTextBoxScope.RelativeHeightPercentage](/api/word/officeimo-word-wordtextboxscope/#method-relativeheightpercentage-nullable-system-int32)
- Method [WordTextBoxScope.RelativeWidthPercentage](/api/word/officeimo-word-wordtextboxscope/#method-relativewidthpercentage-nullable-system-int32)
- Method [WordTextBoxScope.SizeRelativeHorizontally](/api/word/officeimo-word-wordtextboxscope/#method-sizerelativehorizontally-nullable-officeimo-word-wordtextboxhorizontalsizereference)
- Method [WordTextBoxScope.VerticalPositionOffset](/api/word/officeimo-word-wordtextboxscope/#method-verticalpositionoffset-nullable-officeimo-officelength)
- Method [WordTextBoxScope.VerticalPositionRelativeFrom](/api/word/officeimo-word-wordtextboxscope/#method-verticalpositionrelativefrom-officeimo-word-wordverticalrelativeposition)
- Method [WordTextBoxScope.Width](/api/word/officeimo-word-wordtextboxscope/#method-width-officeimo-officelength)
- Method [WordTextBoxScope.WrapText](/api/word/officeimo-word-wordtextboxscope/#method-wraptext-nullable-officeimo-word-wordimagetextwrapping)
- Method [WordTextBoxScope.ZOrder](/api/word/officeimo-word-wordtextboxscope/#method-zorder-uint32)

### Accepted by parameters 4

- Method [WordDocumentScope.TextBox](/api/word/officeimo-word-worddocumentscope/#method-textbox-string-officeimo-word-wordimagetextwrapping-action-officeimo-word-wordtextboxscope) parameter `configure`
- Method [WordHeaderScope.TextBox](/api/word/officeimo-word-wordheaderscope/#method-textbox-string-officeimo-word-wordimagetextwrapping-action-officeimo-word-wordtextboxscope) parameter `configure`
- Method [WordParagraphScope.TextBox](/api/word/officeimo-word-wordparagraphscope/#method-textbox-string-officeimo-word-wordimagetextwrapping-action-officeimo-word-wordtextboxscope) parameter `configure`
- Method [WordSectionScope.TextBox](/api/word/officeimo-word-wordsectionscope/#method-textbox-string-officeimo-word-wordimagetextwrapping-action-officeimo-word-wordtextboxscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordTextBoxScope AutoFit(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.

Parameters

**value OfficeIMO.Word.WordTextBoxAutoFitType required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope AutoFitToTextSize(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.

Parameters

**value bool = true optional**

The value; true when omitted.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope Description(string? value)` [#](#method-description-string)

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

Parameters

**value string? required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope FillColor(OfficeColor? value)` [#](#method-fillcolor-nullable-officeimo-officecolor)

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

Parameters

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope Height(OfficeLength value)` [#](#method-height-officeimo-officelength)

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

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope HorizontalAlignment(WordTextBoxHorizontalAlignment value)` [#](#method-horizontalalignment-officeimo-word-wordtextboxhorizontalalignment)

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

Parameters

**value OfficeIMO.Word.WordTextBoxHorizontalAlignment required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope HorizontalPositionOffset(OfficeLength? value)` [#](#method-horizontalpositionoffset-nullable-officeimo-officelength)

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

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope HorizontalPositionRelativeFrom(WordHorizontalRelativePosition? value)` [#](#method-horizontalpositionrelativefrom-nullable-officeimo-word-wordhorizontalrelativeposition)

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

Parameters

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

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope RelativeHeightPercentage(int? value)` [#](#method-relativeheightpercentage-nullable-system-int32)

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

Parameters

**value int? required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope RelativeWidthPercentage(int? value)` [#](#method-relativewidthpercentage-nullable-system-int32)

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

Parameters

**value int? required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope SizeRelativeHorizontally(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.

Parameters

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

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope VerticalPositionOffset(OfficeLength? value)` [#](#method-verticalpositionoffset-nullable-officeimo-officelength)

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

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope VerticalPositionRelativeFrom(WordVerticalRelativePosition value)` [#](#method-verticalpositionrelativefrom-officeimo-word-wordverticalrelativeposition)

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

Parameters

**value OfficeIMO.Word.WordVerticalRelativePosition required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope Width(OfficeLength value)` [#](#method-width-officeimo-officelength)

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

Parameters

**value OfficeIMO.OfficeLength required**

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope WrapText(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.

Parameters

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

The value.

Returns

`WordTextBoxScope` The same scope.

`public WordTextBoxScope ZOrder(uint value)` [#](#method-zorder-uint32)

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

Parameters

**value uint required**

The value.

Returns

`WordTextBoxScope` The same scope.

## 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?`

## Properties

`public WordTextBox Model { get; }` [#](#property-model)

The [WordTextBox](/api/word/officeimo-word-wordtextbox/) this scope edits, for plain C# inside a lambda.

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