Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordTableCellScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
22fb5b2be3d2 with working tree changes
Modifiers
sealed

Edits one 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.

Accepted by parameters 2

Methods

public WordTableCellScope Borders(Action<WordTableCellBorder> configure) #

Configures WordTableCell.Borders 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) #

Sets WordTableCell.FitText: 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) #

Sets WordTableCell.HideMark: 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) #

Sets WordTableCell.HorizontalMerge: 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) #

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

Sets WordTableCell.MarginBottom: 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) #

Sets WordTableCell.MarginLeft: 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) #

Sets WordTableCell.MarginRight: 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) #

Sets WordTableCell.MarginTop: 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) #

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

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

Configures WordTableCell.Parent 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) #

Configures WordTableCell.ParentTable 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) #

Sets WordTableCell.ShadingFillColor: 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) #

Sets WordTableCell.ShadingPattern: 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) #

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

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

Sets WordTableCell.TextDirection: 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) #

Sets WordTableCell.VerticalAlignment: 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) #

Sets WordTableCell.VerticalMerge: 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) #

Sets WordTableCell.Width: 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) #

Sets WordTableCell.WrapText: Gets or sets whether text wraps within the cell.

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordTableCellScope The same scope.

Properties

public WordTableCell Model { get; } #

The WordTableCell this scope edits, for plain C# inside a lambda.