Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordTableStyleDetails

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
0eef6a5756b9 with working tree changes

Manages table style settings and borders.

Inheritance

  • object
  • WordTableStyleDetails

Usage

Explore 1 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 1

Methods

public void ApplyBordersToAllCells() #

Apply the current table's border settings to all cells in the table

public ValueTuple<WordBorderStyle?, OfficeLength?, OfficeColor?> GetBorderProperties(WordTableBorderSide side) #

Gets border properties for the specified side

Parameters

side OfficeIMO.Word.WordTableBorderSide required
The border side to get properties for

Returns

ValueTuple<WordBorderStyle?, OfficeLength?, OfficeColor?> The direct border style, physical thickness and RGB color; absent or automatic values remain null.
public void SetBordersForAllSides(WordBorderStyle style, OfficeLength size, OfficeColor color) #

Creates and sets a TableBorders object with the specified border settings

Parameters

style OfficeIMO.Word.WordBorderStyle required
Border style for all sides
size OfficeIMO.OfficeLength required
Nonnegative thickness, rounded to eighths of a point within the native unsigned 32-bit range.
color OfficeIMO.OfficeColor required
Border color for all sides
public void SetBordersOutsideInside(WordBorderStyle outsideStyle, OfficeLength outsideSize, OfficeColor outsideColor, WordBorderStyle insideStyle, OfficeLength insideSize, OfficeColor insideColor) #

Creates a TableBorders object with different settings for outside and inside borders

Parameters

outsideStyle OfficeIMO.Word.WordBorderStyle required
Style for outside borders
outsideSize OfficeIMO.OfficeLength required
Nonnegative outside thickness, rounded to eighths of a point.
outsideColor OfficeIMO.OfficeColor required
Color for outside borders
insideStyle OfficeIMO.Word.WordBorderStyle required
Style for inside borders
insideSize OfficeIMO.OfficeLength required
Nonnegative inside thickness, rounded to eighths of a point.
insideColor OfficeIMO.OfficeColor required
Color for inside borders
public void SetCustomBorders(WordBorderStyle? topStyle = null, OfficeLength? topSize = null, OfficeColor? topColor = null, WordBorderStyle? bottomStyle = null, OfficeLength? bottomSize = null, OfficeColor? bottomColor = null, WordBorderStyle? leftStyle = null, OfficeLength? leftSize = null, OfficeColor? leftColor = null, WordBorderStyle? rightStyle = null, OfficeLength? rightSize = null, OfficeColor? rightColor = null, WordBorderStyle? insideHStyle = null, OfficeLength? insideHSize = null, OfficeColor? insideHColor = null, WordBorderStyle? insideVStyle = null, OfficeLength? insideVSize = null, OfficeColor? insideVColor = null) #

Updates only the supplied border settings. Null arguments preserve existing values. Thicknesses are nonnegative and round to eighths of a point within the native unsigned 32-bit range. All thicknesses are validated before any border is changed.

Parameters

topStyle OfficeIMO.Word.WordBorderStyle? = null optional
Optional border style.
topSize OfficeIMO.OfficeLength? = null optional
Optional physical thickness; zero remains explicit.
topColor OfficeIMO.OfficeColor? = null optional
Optional border color.
bottomStyle OfficeIMO.Word.WordBorderStyle? = null optional
Optional border style.
bottomSize OfficeIMO.OfficeLength? = null optional
Optional physical thickness; zero remains explicit.
bottomColor OfficeIMO.OfficeColor? = null optional
Optional border color.
leftStyle OfficeIMO.Word.WordBorderStyle? = null optional
Optional border style.
leftSize OfficeIMO.OfficeLength? = null optional
Optional physical thickness; zero remains explicit.
leftColor OfficeIMO.OfficeColor? = null optional
Optional border color.
rightStyle OfficeIMO.Word.WordBorderStyle? = null optional
Optional border style.
rightSize OfficeIMO.OfficeLength? = null optional
Optional physical thickness; zero remains explicit.
rightColor OfficeIMO.OfficeColor? = null optional
Optional border color.
insideHStyle OfficeIMO.Word.WordBorderStyle? = null optional
Optional border style.
insideHSize OfficeIMO.OfficeLength? = null optional
Optional physical thickness; zero remains explicit.
insideHColor OfficeIMO.OfficeColor? = null optional
Optional border color.
insideVStyle OfficeIMO.Word.WordBorderStyle? = null optional
Optional border style.
insideVSize OfficeIMO.OfficeLength? = null optional
Optional physical thickness; zero remains explicit.
insideVColor OfficeIMO.OfficeColor? = null optional
Optional border color.

Properties

public OfficeLength? MarginDefaultTop { get; set; } #

Gets or sets the nonnegative default top cell margin; null removes the direct override. Values round to whole twips and must fit 0 through 32767 twips.

public OfficeLength? MarginDefaultBottom { get; set; } #

Gets or sets the nonnegative default bottom cell margin; null removes the direct override. Values round to whole twips and must fit 0 through 32767 twips.

public OfficeLength? MarginDefaultLeft { get; set; } #

Gets or sets the nonnegative default left cell margin; null removes the direct override. Values round to whole twips and must fit 0 through 32767 twips.

public OfficeLength? MarginDefaultRight { get; set; } #

Gets or sets the nonnegative default right cell margin; null removes the direct override. Values round to whole twips and must fit 0 through 32767 twips.

public OfficeLength? CellSpacing { get; set; } #

Gets or sets nonnegative cell spacing; null removes the direct override. Values round to whole twips and must fit 0 through 32767 twips.

public OfficeLength? TableIndentation { get; set; } #

Gets or sets signed table indentation; null removes the direct override. Values round to whole twips within the signed 32-bit native range.

public OfficeColor? ShadingFillColor { get; set; } #

Gets or sets the direct table fill color. Null removes direct table shading.

public OfficeColor? ShadingColor { get; set; } #

Gets or sets the direct shading pattern color. Null clears only that color.

public WordShadingPattern? ShadingPattern { get; set; } #

Gets or sets the direct table shading pattern. Null removes direct table shading.