# WordTableCellScope

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Source revision**

`105ae88c45f6` with working tree changes

**Source**

[WordScopes.cs:140](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Word/Scopes/WordScopes.cs#L140)

**Modifiers**

sealed

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

## Inheritance

- object
- WordTableCellScope

## Usage

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

- Method [WordTableCellScope.Borders](/api/word/officeimo-word-wordtablecellscope/#method-borders-action-officeimo-word-wordtablecellborder)
- Method [WordTableCellScope.FitText](/api/word/officeimo-word-wordtablecellscope/#method-fittext-boolean)
- Method [WordTableCellScope.HideMark](/api/word/officeimo-word-wordtablecellscope/#method-hidemark-boolean)
- Method [WordTableCellScope.HorizontalMerge](/api/word/officeimo-word-wordtablecellscope/#method-horizontalmerge-nullable-officeimo-word-wordcellmerge)
- Method [WordTableCellScope.List](/api/word/officeimo-word-wordtablecellscope/#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope)
- Method [WordTableCellScope.MarginBottom](/api/word/officeimo-word-wordtablecellscope/#method-marginbottom-nullable-officeimo-officelength)
- Method [WordTableCellScope.MarginLeft](/api/word/officeimo-word-wordtablecellscope/#method-marginleft-nullable-officeimo-officelength)
- Method [WordTableCellScope.MarginRight](/api/word/officeimo-word-wordtablecellscope/#method-marginright-nullable-officeimo-officelength)
- Method [WordTableCellScope.MarginTop](/api/word/officeimo-word-wordtablecellscope/#method-margintop-nullable-officeimo-officelength)
- Method [WordTableCellScope.Paragraph](/api/word/officeimo-word-wordtablecellscope/#method-paragraph-string-boolean-action-officeimo-word-wordparagraphscope)
- Method [WordTableCellScope.Parent](/api/word/officeimo-word-wordtablecellscope/#method-parent-action-officeimo-word-wordtablerow)
- Method [WordTableCellScope.ParentTable](/api/word/officeimo-word-wordtablecellscope/#method-parenttable-action-officeimo-word-wordtable)
- Method [WordTableCellScope.ShadingFillColor](/api/word/officeimo-word-wordtablecellscope/#method-shadingfillcolor-nullable-officeimo-officecolor)
- Method [WordTableCellScope.ShadingPattern](/api/word/officeimo-word-wordtablecellscope/#method-shadingpattern-nullable-officeimo-word-wordshadingpattern)
- Method [WordTableCellScope.Table](/api/word/officeimo-word-wordtablecellscope/#method-table-action-officeimo-word-wordtablebuilder)
- Method [WordTableCellScope.TextDirection](/api/word/officeimo-word-wordtablecellscope/#method-textdirection-nullable-officeimo-word-wordtextdirection)
- Method [WordTableCellScope.VerticalAlignment](/api/word/officeimo-word-wordtablecellscope/#method-verticalalignment-nullable-officeimo-word-wordtableverticalalignment)
- Method [WordTableCellScope.VerticalMerge](/api/word/officeimo-word-wordtablecellscope/#method-verticalmerge-nullable-officeimo-word-wordcellmerge)
- Method [WordTableCellScope.Width](/api/word/officeimo-word-wordtablecellscope/#method-width-nullable-officeimo-word-wordtablewidth)
- Method [WordTableCellScope.WrapText](/api/word/officeimo-word-wordtablecellscope/#method-wraptext-boolean)

### Accepted by parameters 2

- Method [WordTableRowBuilder.Cell](/api/word/officeimo-word-wordtablerowbuilder/#method-cell-string-action-officeimo-word-wordtablecellscope) parameter `configure`
- Method [WordTableRowScope.Cell](/api/word/officeimo-word-wordtablerowscope/#method-cell-action-officeimo-word-wordtablecellscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordTableCellScope Borders(Action<WordTableCellBorder> configure)` [#](#method-borders-action-officeimo-word-wordtablecellborder)

Configures [WordTableCell.Borders](/api/word/officeimo-word-wordtablecell/) in place: Provides access to the border configuration of the cell.

Parameters

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

Configures the value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope FitText(bool value = true)` [#](#method-fittext-boolean)

Sets [WordTableCell.FitText](/api/word/officeimo-word-wordtablecell/): Gets or sets whether text is compressed to fit within the cell width.

Parameters

**value bool = true optional**

The value; true when omitted.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope HideMark(bool value = true)` [#](#method-hidemark-boolean)

Sets [WordTableCell.HideMark](/api/word/officeimo-word-wordtablecell/): Gets or sets whether the empty cell mark is hidden for this cell.

Parameters

**value bool = true optional**

The value; true when omitted.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope HorizontalMerge(WordCellMerge? value)` [#](#method-horizontalmerge-nullable-officeimo-word-wordcellmerge)

Sets [WordTableCell.HorizontalMerge](/api/word/officeimo-word-wordtablecell/): Gets or Sets Horizontal Merge for a Table Cell

Parameters

**value OfficeIMO.Word.WordCellMerge? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope List(WordListStyle style, Action<WordListScope>? configure = null)` [#](#method-list-officeimo-word-wordliststyle-action-officeimo-word-wordlistscope)

Creates a list within this table cell using the specified style.

Parameters

**style OfficeIMO.Word.WordListStyle required**

List style to apply.

**configure System.Action<OfficeIMO.Word.WordListScope>? = null optional**

Configures the new item through its scope.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope MarginBottom(OfficeLength? value)` [#](#method-marginbottom-nullable-officeimo-officelength)

Sets [WordTableCell.MarginBottom](/api/word/officeimo-word-wordtablecell/): Gets or sets the bottom margin as a physical length for the current cell.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope MarginLeft(OfficeLength? value)` [#](#method-marginleft-nullable-officeimo-officelength)

Sets [WordTableCell.MarginLeft](/api/word/officeimo-word-wordtablecell/): Gets or sets the left margin as a physical length for the current cell.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope MarginRight(OfficeLength? value)` [#](#method-marginright-nullable-officeimo-officelength)

Sets [WordTableCell.MarginRight](/api/word/officeimo-word-wordtablecell/): Gets or sets the right margin as a physical length for the current cell.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope MarginTop(OfficeLength? value)` [#](#method-margintop-nullable-officeimo-officelength)

Sets [WordTableCell.MarginTop](/api/word/officeimo-word-wordtablecell/): Gets or sets the top margin as a physical length for the current cell.

Parameters

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`WordTableCellScope` The same scope.

Paragraph 2 overloads

`public WordTableCellScope Paragraph(Action<WordParagraphScope> configure)` [#](#method-paragraph-action-officeimo-word-wordparagraphscope)

[WordScopes.cs:140](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Word/Scopes/WordScopes.cs#L140)

Adds a paragraph to the cell and composes it.

Parameters

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

Adds text runs and formats the paragraph.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope Paragraph(string text, bool removeExistingParagraphs = false, Action<WordParagraphScope>? configure = null)` [#](#method-paragraph-string-boolean-action-officeimo-word-wordparagraphscope)

Add paragraph to the table cell with text

Parameters

**text string required**

The value.

**removeExistingParagraphs bool = false optional**

The value.

**configure System.Action<OfficeIMO.Word.WordParagraphScope>? = null optional**

Configures the new item through its scope.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope Parent(Action<WordTableRow> configure)` [#](#method-parent-action-officeimo-word-wordtablerow)

Configures [WordTableCell.Parent](/api/word/officeimo-word-wordtablecell/) in place: Gets the row that owns this cell.

Parameters

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

Configures the value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope ParentTable(Action<WordTable> configure)` [#](#method-parenttable-action-officeimo-word-wordtable)

Configures [WordTableCell.ParentTable](/api/word/officeimo-word-wordtablecell/) in place: Gets the table that owns this cell.

Parameters

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

Configures the value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope ShadingFillColor(OfficeColor? value)` [#](#method-shadingfillcolor-nullable-officeimo-officecolor)

Sets [WordTableCell.ShadingFillColor](/api/word/officeimo-word-wordtablecell/): Gets the resolved background color. Setting a role retains native theme slots and resolves status colors against the document. An automatic or unspecified fill returns null; setting null removes the shading.

Parameters

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope ShadingPattern(WordShadingPattern? value)` [#](#method-shadingpattern-nullable-officeimo-word-wordshadingpattern)

Sets [WordTableCell.ShadingPattern](/api/word/officeimo-word-wordtablecell/): Get or set the background pattern of a cell

Parameters

**value OfficeIMO.Word.WordShadingPattern? required**

The value.

Returns

`WordTableCellScope` The same scope.

Table 2 overloads

`public WordTableCellScope Table(Action<WordTableBuilder> compose)` [#](#method-table-action-officeimo-word-wordtablebuilder)

[WordScopes.cs:149](https://github.com/EvotecIT/OfficeIMO/blob/105ae88c45f6be3bb2020384e25ffe61d990451b/Sources/OfficeIMO.Word/Scopes/WordScopes.cs#L149)

Adds a nested table composed row by row to the cell.

Parameters

**compose System.Action<OfficeIMO.Word.WordTableBuilder> required**

Sets the columns, header and rows.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope Table(int rows, int columns, WordTableStyle tableStyle = TableGrid, bool removePrecedingParagraph = false, Action<WordTableScope>? configure = null)` [#](#method-table-int32-int32-officeimo-word-wordtablestyle-boolean-action-officeimo-word-wordtablescope)

Add table to a table cell (nested table)

Parameters

**rows int required**

The value.

**columns int required**

The value.

**tableStyle OfficeIMO.Word.WordTableStyle = TableGrid optional**

The value.

**removePrecedingParagraph bool = false optional**

The value.

**configure System.Action<OfficeIMO.Word.WordTableScope>? = null optional**

Configures the new item through its scope.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope TextDirection(WordTextDirection? value)` [#](#method-textdirection-nullable-officeimo-word-wordtextdirection)

Sets [WordTableCell.TextDirection](/api/word/officeimo-word-wordtablecell/): Gets or sets text direction in a Table Cell

Parameters

**value OfficeIMO.Word.WordTextDirection? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope VerticalAlignment(WordTableVerticalAlignment? value)` [#](#method-verticalalignment-nullable-officeimo-word-wordtableverticalalignment)

Sets [WordTableCell.VerticalAlignment](/api/word/officeimo-word-wordtablecell/): Gets or sets cell vertical alignment in a Table Cell

Parameters

**value OfficeIMO.Word.WordTableVerticalAlignment? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope VerticalMerge(WordCellMerge? value)` [#](#method-verticalmerge-nullable-officeimo-word-wordcellmerge)

Sets [WordTableCell.VerticalMerge](/api/word/officeimo-word-wordtablecell/): Gets or sets vertical merge for this cell.

Parameters

**value OfficeIMO.Word.WordCellMerge? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope Width(WordTableWidth? value)` [#](#method-width-nullable-officeimo-word-wordtablewidth)

Sets [WordTableCell.Width](/api/word/officeimo-word-wordtablecell/): Gets or sets the directly authored preferred cell width. Null removes tcW.

Parameters

**value OfficeIMO.Word.WordTableWidth? required**

The value.

Returns

`WordTableCellScope` The same scope.

`public WordTableCellScope WrapText(bool value = true)` [#](#method-wraptext-boolean)

Sets [WordTableCell.WrapText](/api/word/officeimo-word-wordtablecell/): Gets or sets whether text wraps within the cell.

Parameters

**value bool = true optional**

The value; true when omitted.

Returns

`WordTableCellScope` 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 WordTableCell Model { get; }` [#](#property-model)

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

<!-- PowerForge markdown artifact sha256:98A2AE3E5D51AEC37D6D93DE698E2419A5C56C0E6C63522E03FF7D6621FF4D14 -->
