# RtfTableCellFluent

The fluent methods of RtfTableCell, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Rtf`

**Namespace**

`OfficeIMO.Rtf`

**Assembly**

`OfficeIMO.Rtf`

**Modifiers**

static

The fluent methods of [RtfTableCell](/api/rtf/officeimo-rtf-rtftablecell/), 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
- RtfTableCellFluent

Filter members 

Show inherited

## Methods

`public static RtfTableCell BackgroundColor(RtfTableCell rtfTableCell, int? colorIndex)` [#](#method-backgroundcolor-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets cell background shading to a one-based color table index.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**colorIndex int? required**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell BackgroundColorIndex(RtfTableCell rtfTableCell, int? value)` [#](#method-backgroundcolorindex-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.BackgroundColorIndex](/api/rtf/officeimo-rtf-rtftablecell/): One-based color table index used for cell background shading.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { BackgroundColorIndex = value };    rtfTableCell.BackgroundColorIndex(value);
```

`public static RtfTableCell BottomBorder(RtfTableCell rtfTableCell, Action<RtfTableCellBorder> configure)` [#](#method-bottomborder-officeimo-rtf-rtftablecell-action-officeimo-rtf-rtftablecellborder)

Configures [RtfTableCell.BottomBorder](/api/rtf/officeimo-rtf-rtftablecell/) in place: Bottom cell border.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfTableCellBorder> required**

Configures the value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell FitText(RtfTableCell rtfTableCell, bool fitText = true)` [#](#method-fittext-officeimo-rtf-rtftablecell-boolean)

Sets whether text is compressed to fit within the cell width.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**fitText bool = true optional**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell HideCellMark(RtfTableCell rtfTableCell, bool hidden = true)` [#](#method-hidecellmark-officeimo-rtf-rtftablecell-boolean)

Sets whether the end-of-cell mark is hidden.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**hidden bool = true optional**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell HorizontalMerge(RtfTableCell rtfTableCell, RtfTableCellMerge value)` [#](#method-horizontalmerge-officeimo-rtf-rtftablecell-officeimo-rtf-rtftablecellmerge)

Sets [RtfTableCell.HorizontalMerge](/api/rtf/officeimo-rtf-rtftablecell/): Horizontal merge marker.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value OfficeIMO.Rtf.RtfTableCellMerge required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { HorizontalMerge = value };    rtfTableCell.HorizontalMerge(value);
```

`public static RtfTableCell LeftBorder(RtfTableCell rtfTableCell, Action<RtfTableCellBorder> configure)` [#](#method-leftborder-officeimo-rtf-rtftablecell-action-officeimo-rtf-rtftablecellborder)

Configures [RtfTableCell.LeftBorder](/api/rtf/officeimo-rtf-rtftablecell/) in place: Left cell border.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfTableCellBorder> required**

Configures the value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell NoWrap(RtfTableCell rtfTableCell, bool noWrap = true)` [#](#method-nowrap-officeimo-rtf-rtftablecell-boolean)

Sets whether text should not wrap inside the cell.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**noWrap bool = true optional**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell Padding(RtfTableCell rtfTableCell, int? topTwips = null, int? leftTwips = null, int? bottomTwips = null, int? rightTwips = null)` [#](#method-padding-officeimo-rtf-rtftablecell-nullable-system-int32-nullable-system-int32-nullable-system-int32-nullable-system-int32)

Sets cell padding in twips.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**topTwips int? = null optional**

The value.

**leftTwips int? = null optional**

The value.

**bottomTwips int? = null optional**

The value.

**rightTwips int? = null optional**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell PaddingBottomTwips(RtfTableCell rtfTableCell, int? value)` [#](#method-paddingbottomtwips-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.PaddingBottomTwips](/api/rtf/officeimo-rtf-rtftablecell/): Bottom cell padding in twips.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingBottomTwips = value };    rtfTableCell.PaddingBottomTwips(value);
```

`public static RtfTableCell PaddingLeftTwips(RtfTableCell rtfTableCell, int? value)` [#](#method-paddinglefttwips-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.PaddingLeftTwips](/api/rtf/officeimo-rtf-rtftablecell/): Left cell padding in twips.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingLeftTwips = value };    rtfTableCell.PaddingLeftTwips(value);
```

`public static RtfTableCell PaddingRightTwips(RtfTableCell rtfTableCell, int? value)` [#](#method-paddingrighttwips-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.PaddingRightTwips](/api/rtf/officeimo-rtf-rtftablecell/): Right cell padding in twips.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingRightTwips = value };    rtfTableCell.PaddingRightTwips(value);
```

`public static RtfTableCell PaddingTopTwips(RtfTableCell rtfTableCell, int? value)` [#](#method-paddingtoptwips-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.PaddingTopTwips](/api/rtf/officeimo-rtf-rtftablecell/): Top cell padding in twips.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingTopTwips = value };    rtfTableCell.PaddingTopTwips(value);
```

`public static RtfTableCell PreferredWidth(RtfTableCell rtfTableCell, int? width, RtfTableWidthUnit? unit = null)` [#](#method-preferredwidth-officeimo-rtf-rtftablecell-nullable-system-int32-nullable-officeimo-rtf-rtftablewidthunit)

Sets the preferred cell width.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**width int? required**

The value.

**unit OfficeIMO.Rtf.RtfTableWidthUnit? = null optional**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell PreferredWidthUnit(RtfTableCell rtfTableCell, RtfTableWidthUnit? value)` [#](#method-preferredwidthunit-officeimo-rtf-rtftablecell-nullable-officeimo-rtf-rtftablewidthunit)

Sets [RtfTableCell.PreferredWidthUnit](/api/rtf/officeimo-rtf-rtftablecell/): Preferred cell width unit carried by \clftsWidth.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value OfficeIMO.Rtf.RtfTableWidthUnit? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PreferredWidthUnit = value };    rtfTableCell.PreferredWidthUnit(value);
```

`public static RtfTableCell RightBorder(RtfTableCell rtfTableCell, Action<RtfTableCellBorder> configure)` [#](#method-rightborder-officeimo-rtf-rtftablecell-action-officeimo-rtf-rtftablecellborder)

Configures [RtfTableCell.RightBorder](/api/rtf/officeimo-rtf-rtftablecell/) in place: Right cell border.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfTableCellBorder> required**

Configures the value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell RightBoundaryTwips(RtfTableCell rtfTableCell, int? value)` [#](#method-rightboundarytwips-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.RightBoundaryTwips](/api/rtf/officeimo-rtf-rtftablecell/): Right cell boundary in twips.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { RightBoundaryTwips = value };    rtfTableCell.RightBoundaryTwips(value);
```

`public static RtfTableCell Shading(RtfTableCell rtfTableCell, int? backgroundColorIndex, int? foregroundColorIndex = null, int? patternPercent = null, RtfShadingPattern pattern = None)` [#](#method-shading-officeimo-rtf-rtftablecell-nullable-system-int32-nullable-system-int32-nullable-system-int32-officeimo-rtf-rtfshadingpattern)

Sets cell shading color and pattern metadata.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**backgroundColorIndex int? required**

The value.

**foregroundColorIndex int? = null optional**

The value.

**patternPercent int? = null optional**

The value.

**pattern OfficeIMO.Rtf.RtfShadingPattern = None optional**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell ShadingForegroundColorIndex(RtfTableCell rtfTableCell, int? value)` [#](#method-shadingforegroundcolorindex-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.ShadingForegroundColorIndex](/api/rtf/officeimo-rtf-rtftablecell/): One-based color table index used for cell pattern foreground shading.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { ShadingForegroundColorIndex = value };    rtfTableCell.ShadingForegroundColorIndex(value);
```

`public static RtfTableCell ShadingPattern(RtfTableCell rtfTableCell, RtfShadingPattern value)` [#](#method-shadingpattern-officeimo-rtf-rtftablecell-officeimo-rtf-rtfshadingpattern)

Sets [RtfTableCell.ShadingPattern](/api/rtf/officeimo-rtf-rtftablecell/): Named RTF cell shading pattern.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value OfficeIMO.Rtf.RtfShadingPattern required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { ShadingPattern = value };    rtfTableCell.ShadingPattern(value);
```

`public static RtfTableCell ShadingPatternPercent(RtfTableCell rtfTableCell, int? value)` [#](#method-shadingpatternpercent-officeimo-rtf-rtftablecell-nullable-system-int32)

Sets [RtfTableCell.ShadingPatternPercent](/api/rtf/officeimo-rtf-rtftablecell/): Raw RTF \clshdng value, where 10000 represents 100 percent.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value int? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { ShadingPatternPercent = value };    rtfTableCell.ShadingPatternPercent(value);
```

`public static RtfTableCell TextFlow(RtfTableCell rtfTableCell, RtfTableCellTextFlow? textFlow)` [#](#method-textflow-officeimo-rtf-rtftablecell-nullable-officeimo-rtf-rtftablecelltextflow)

Sets the cell text flow.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**textFlow OfficeIMO.Rtf.RtfTableCellTextFlow? required**

The value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell TopBorder(RtfTableCell rtfTableCell, Action<RtfTableCellBorder> configure)` [#](#method-topborder-officeimo-rtf-rtftablecell-action-officeimo-rtf-rtftablecellborder)

Configures [RtfTableCell.TopBorder](/api/rtf/officeimo-rtf-rtftablecell/) in place: Top cell border.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfTableCellBorder> required**

Configures the value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell TopLeftToBottomRightBorder(RtfTableCell rtfTableCell, Action<RtfTableCellBorder> configure)` [#](#method-toplefttobottomrightborder-officeimo-rtf-rtftablecell-action-officeimo-rtf-rtftablecellborder)

Configures [RtfTableCell.TopLeftToBottomRightBorder](/api/rtf/officeimo-rtf-rtftablecell/) in place: Diagonal cell border from top-left to bottom-right.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfTableCellBorder> required**

Configures the value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell TopRightToBottomLeftBorder(RtfTableCell rtfTableCell, Action<RtfTableCellBorder> configure)` [#](#method-toprighttobottomleftborder-officeimo-rtf-rtftablecell-action-officeimo-rtf-rtftablecellborder)

Configures [RtfTableCell.TopRightToBottomLeftBorder](/api/rtf/officeimo-rtf-rtftablecell/) in place: Diagonal cell border from top-right to bottom-left.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**configure System.Action<OfficeIMO.Rtf.RtfTableCellBorder> required**

Configures the value.

Returns

`RtfTableCell` The same instance.

`public static RtfTableCell VerticalAlignment(RtfTableCell rtfTableCell, RtfTableCellVerticalAlignment? value)` [#](#method-verticalalignment-officeimo-rtf-rtftablecell-nullable-officeimo-rtf-rtftablecellverticalalignment)

Sets [RtfTableCell.VerticalAlignment](/api/rtf/officeimo-rtf-rtftablecell/): Vertical alignment for cell content.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value OfficeIMO.Rtf.RtfTableCellVerticalAlignment? required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { VerticalAlignment = value };    rtfTableCell.VerticalAlignment(value);
```

`public static RtfTableCell VerticalMerge(RtfTableCell rtfTableCell, RtfTableCellMerge value)` [#](#method-verticalmerge-officeimo-rtf-rtftablecell-officeimo-rtf-rtftablecellmerge)

Sets [RtfTableCell.VerticalMerge](/api/rtf/officeimo-rtf-rtftablecell/): Vertical merge marker.

Parameters

**rtfTableCell OfficeIMO.Rtf.RtfTableCell required**

The instance.

**value OfficeIMO.Rtf.RtfTableCellMerge required**

The value.

Returns

`RtfTableCell` The same instance.

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { VerticalMerge = value };    rtfTableCell.VerticalMerge(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:AE0CC48860B13383BF26C784C94F24C822CA8FBF0C3E9757E1E7D711F1247941 -->
