WordTableStyleDetails
OfficeIMO.Word
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
- Property WordTable.StyleDetails
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
- 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
- Border style for all sides
- size OfficeIMO.OfficeLength
- Nonnegative thickness, rounded to eighths of a point within the native unsigned 32-bit range.
- color OfficeIMO.OfficeColor
- 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
- Style for outside borders
- outsideSize OfficeIMO.OfficeLength
- Nonnegative outside thickness, rounded to eighths of a point.
- outsideColor OfficeIMO.OfficeColor
- Color for outside borders
- insideStyle OfficeIMO.Word.WordBorderStyle
- Style for inside borders
- insideSize OfficeIMO.OfficeLength
- Nonnegative inside thickness, rounded to eighths of a point.
- insideColor OfficeIMO.OfficeColor
- 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 border style.
- topSize OfficeIMO.OfficeLength? = null
- Optional physical thickness; zero remains explicit.
- topColor OfficeIMO.OfficeColor? = null
- Optional border color.
- bottomStyle OfficeIMO.Word.WordBorderStyle? = null
- Optional border style.
- bottomSize OfficeIMO.OfficeLength? = null
- Optional physical thickness; zero remains explicit.
- bottomColor OfficeIMO.OfficeColor? = null
- Optional border color.
- leftStyle OfficeIMO.Word.WordBorderStyle? = null
- Optional border style.
- leftSize OfficeIMO.OfficeLength? = null
- Optional physical thickness; zero remains explicit.
- leftColor OfficeIMO.OfficeColor? = null
- Optional border color.
- rightStyle OfficeIMO.Word.WordBorderStyle? = null
- Optional border style.
- rightSize OfficeIMO.OfficeLength? = null
- Optional physical thickness; zero remains explicit.
- rightColor OfficeIMO.OfficeColor? = null
- Optional border color.
- insideHStyle OfficeIMO.Word.WordBorderStyle? = null
- Optional border style.
- insideHSize OfficeIMO.OfficeLength? = null
- Optional physical thickness; zero remains explicit.
- insideHColor OfficeIMO.OfficeColor? = null
- Optional border color.
- insideVStyle OfficeIMO.Word.WordBorderStyle? = null
- Optional border style.
- insideVSize OfficeIMO.OfficeLength? = null
- Optional physical thickness; zero remains explicit.
- insideVColor OfficeIMO.OfficeColor? = null
- Optional border color.
Inherited Methods
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.