Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfTableCellFluent

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Modifiers
static

The fluent methods of 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

Methods

public static RtfTableCell BackgroundColor(RtfTableCell rtfTableCell, int? colorIndex) #

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) #

Sets RtfTableCell.BackgroundColorIndex: 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

// 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) #

Configures RtfTableCell.BottomBorder 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) #

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) #

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) #

Sets RtfTableCell.HorizontalMerge: Horizontal merge marker.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value OfficeIMO.Rtf.RtfTableCellMerge required
The value.

Returns

RtfTableCell The same instance.

Examples

// 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) #

Configures RtfTableCell.LeftBorder 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) #

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) #

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) #

Sets RtfTableCell.PaddingBottomTwips: Bottom cell padding in twips.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value int? required
The value.

Returns

RtfTableCell The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingBottomTwips = value };    rtfTableCell.PaddingBottomTwips(value);
public static RtfTableCell PaddingLeftTwips(RtfTableCell rtfTableCell, int? value) #

Sets RtfTableCell.PaddingLeftTwips: Left cell padding in twips.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value int? required
The value.

Returns

RtfTableCell The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingLeftTwips = value };    rtfTableCell.PaddingLeftTwips(value);
public static RtfTableCell PaddingRightTwips(RtfTableCell rtfTableCell, int? value) #

Sets RtfTableCell.PaddingRightTwips: Right cell padding in twips.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value int? required
The value.

Returns

RtfTableCell The same instance.

Examples

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingRightTwips = value };    rtfTableCell.PaddingRightTwips(value);
public static RtfTableCell PaddingTopTwips(RtfTableCell rtfTableCell, int? value) #

Sets RtfTableCell.PaddingTopTwips: Top cell padding in twips.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value int? required
The value.

Returns

RtfTableCell The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PaddingTopTwips = value };    rtfTableCell.PaddingTopTwips(value);
PreferredWidth 2 overloads
public static RtfTableCell PreferredWidth(RtfTableCell rtfTableCell, int? width, RtfTableWidthUnit? unit = null) #

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 PreferredWidth(RtfTableCell rtfTableCell, int? value) #

Sets RtfTableCell.PreferredWidth: Preferred cell width value carried by \clwWidth.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value int? required
The value.

Returns

RtfTableCell The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { PreferredWidth = value };    rtfTableCell.PreferredWidth(value);
public static RtfTableCell PreferredWidthUnit(RtfTableCell rtfTableCell, RtfTableWidthUnit? value) #

Sets RtfTableCell.PreferredWidthUnit: 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

// 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) #

Configures RtfTableCell.RightBorder 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) #

Sets RtfTableCell.RightBoundaryTwips: Right cell boundary in twips.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value int? required
The value.

Returns

RtfTableCell The same instance.

Examples

// 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) #

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) #

Sets RtfTableCell.ShadingForegroundColorIndex: 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

// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { ShadingForegroundColorIndex = value };    rtfTableCell.ShadingForegroundColorIndex(value);
public static RtfTableCell ShadingPattern(RtfTableCell rtfTableCell, RtfShadingPattern value) #

Sets RtfTableCell.ShadingPattern: 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

// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { ShadingPattern = value };    rtfTableCell.ShadingPattern(value);
public static RtfTableCell ShadingPatternPercent(RtfTableCell rtfTableCell, int? value) #

Sets RtfTableCell.ShadingPatternPercent: 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

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { ShadingPatternPercent = value };    rtfTableCell.ShadingPatternPercent(value);
public static RtfTableCell TextFlow(RtfTableCell rtfTableCell, RtfTableCellTextFlow? textFlow) #

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) #

Configures RtfTableCell.TopBorder 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) #

Configures RtfTableCell.TopLeftToBottomRightBorder 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) #

Configures RtfTableCell.TopRightToBottomLeftBorder 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) #

Sets RtfTableCell.VerticalAlignment: 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

// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Rtf.RtfTableCell { VerticalAlignment = value };    rtfTableCell.VerticalAlignment(value);
public static RtfTableCell VerticalMerge(RtfTableCell rtfTableCell, RtfTableCellMerge value) #

Sets RtfTableCell.VerticalMerge: Vertical merge marker.

Parameters

rtfTableCell OfficeIMO.Rtf.RtfTableCell required
The instance.
value OfficeIMO.Rtf.RtfTableCellMerge required
The value.

Returns

RtfTableCell The same instance.

Examples

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