# WordTableCellFluent

The fluent methods of WordTableCell, 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 [WordTableCell](/api/word/officeimo-word-wordtablecell/), 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
- WordTableCellFluent

Filter members 

Show inherited

## Methods

`public static TSelf Borders<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf FitText<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell 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
wordTableCell.FitText = value;    wordTableCell.FitText(value);
```

`public static TSelf HideMark<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell 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
wordTableCell.HideMark = value;    wordTableCell.HideMark(value);
```

`public static TSelf HorizontalMerge<TSelf>(TSelf wordTableCell, 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

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property             // C# fluent
wordTableCell.HorizontalMerge = value;    wordTableCell.HorizontalMerge(value);
```

`public static TSelf MarginBottom<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property          // C# fluent
wordTableCell.MarginBottom = value;    wordTableCell.MarginBottom(value);
```

`public static TSelf MarginLeft<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
wordTableCell.MarginLeft = value;    wordTableCell.MarginLeft(value);
```

`public static TSelf MarginRight<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property         // C# fluent
wordTableCell.MarginRight = value;    wordTableCell.MarginRight(value);
```

`public static TSelf MarginTop<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property       // C# fluent
wordTableCell.MarginTop = value;    wordTableCell.MarginTop(value);
```

`public static TSelf ParentTable<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf Parent<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

Configures the value.

Returns

`TSelf` The same instance.

`public static TSelf ShadingFillColor<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

**value OfficeIMO.OfficeColor? required**

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf ShadingPattern<TSelf>(TSelf wordTableCell, 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

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property            // C# fluent
wordTableCell.ShadingPattern = value;    wordTableCell.ShadingPattern(value);
```

`public static TSelf TextDirection<TSelf>(TSelf wordTableCell, 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

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordTableCell.TextDirection = value;    wordTableCell.TextDirection(value);
```

`public static TSelf VerticalAlignment<TSelf>(TSelf wordTableCell, 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

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property               // C# fluent
wordTableCell.VerticalAlignment = value;    wordTableCell.VerticalAlignment(value);
```

`public static TSelf VerticalMerge<TSelf>(TSelf wordTableCell, WordCellMerge? value)` [#](#method-verticalmerge-nullable-officeimo-word-wordcellmerge)

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

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property           // C# fluent
wordTableCell.VerticalMerge = value;    wordTableCell.VerticalMerge(value);
```

`public static TSelf Width<TSelf>(TSelf wordTableCell, 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.

Type Parameters

**TSelf**

Parameters

**wordTableCell TSelf required**

The instance.

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

The value.

Returns

`TSelf` The same instance.

Examples

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

`public static TSelf WrapText<TSelf>(TSelf wordTableCell, bool value = true)` [#](#method-wraptext-boolean)

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

Type Parameters

**TSelf**

Parameters

**wordTableCell 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
wordTableCell.WrapText = value;    wordTableCell.WrapText(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:F58211242C581C3077075DBB21FF3F4E57E1C3453915E1909573A581A806CEF0 -->
