API Reference
WordTableStyleDetails
Manages table style settings and borders.
Inheritance
- Object
- WordTableStyleDetails
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property WordTable.StyleDetails
Methods
public Void ApplyBordersToAllCells() #VoidApply the current table's border settings to all cells in the table
public ValueTuple<Nullable<WordBorderStyle>, Nullable<UInt32>, String> GetBorderProperties(WordTableBorderSide side) #ValueTuple<Nullable<WordBorderStyle>, Nullable<UInt32>, String>Gets border properties for the specified side
Parameters
- side OfficeIMO.Word.WordTableBorderSide
- The border side to get properties for
Returns
A tuple with style, size, and color
public Void SetBordersForAllSides(WordBorderStyle style, UInt32 size, OfficeColor color) #VoidCreates and sets a TableBorders object with the specified border settings
Parameters
- style OfficeIMO.Word.WordBorderStyle
- Border style for all sides
- size System.UInt32
- Border size for all sides
- color OfficeIMO.Drawing.OfficeColor
- Border color for all sides
public Void SetBordersOutsideInside(WordBorderStyle outsideStyle, UInt32 outsideSize, OfficeColor outsideColor, WordBorderStyle insideStyle, UInt32 insideSize, OfficeColor insideColor) #VoidCreates a TableBorders object with different settings for outside and inside borders
Parameters
- outsideStyle OfficeIMO.Word.WordBorderStyle
- Style for outside borders
- outsideSize System.UInt32
- Size for outside borders
- outsideColor OfficeIMO.Drawing.OfficeColor
- Color for outside borders
- insideStyle OfficeIMO.Word.WordBorderStyle
- Style for inside borders
- insideSize System.UInt32
- Size for inside borders
- insideColor OfficeIMO.Drawing.OfficeColor
- Color for inside borders
public Void SetCustomBorders(Nullable<WordBorderStyle> topStyle = null, Nullable<UInt32> topSize = null, Nullable<OfficeColor> topColor = null, Nullable<WordBorderStyle> bottomStyle = null, Nullable<UInt32> bottomSize = null, Nullable<OfficeColor> bottomColor = null, Nullable<WordBorderStyle> leftStyle = null, Nullable<UInt32> leftSize = null, Nullable<OfficeColor> leftColor = null, Nullable<WordBorderStyle> rightStyle = null, Nullable<UInt32> rightSize = null, Nullable<OfficeColor> rightColor = null, Nullable<WordBorderStyle> insideHStyle = null, Nullable<UInt32> insideHSize = null, Nullable<OfficeColor> insideHColor = null, Nullable<WordBorderStyle> insideVStyle = null, Nullable<UInt32> insideVSize = null, Nullable<OfficeColor> insideVColor = null) #VoidCreates a TableBorders object with custom settings for each side
Parameters
- topStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null
- topSize System.Nullable{System.UInt32} = null
- topColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- bottomStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null
- bottomSize System.Nullable{System.UInt32} = null
- bottomColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- leftStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null
- leftSize System.Nullable{System.UInt32} = null
- leftColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- rightStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null
- rightSize System.Nullable{System.UInt32} = null
- rightColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- insideHStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null
- insideHSize System.Nullable{System.UInt32} = null
- insideHColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
- insideVStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null
- insideVSize System.Nullable{System.UInt32} = null
- insideVColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
Properties
public Nullable<Int16> MarginDefaultTopWidth { get; set; } #Get or set the top margin in twips
public Nullable<Double> MarginDefaultTopCentimeters { get; set; } #Get or set the top margin in centimeters
public Nullable<Int16> MarginDefaultBottomWidth { get; set; } #Get or set the bottom margin in twips
public Nullable<Double> MarginDefaultBottomCentimeters { get; set; } #Get or set the bottom margin in centimeters
public Nullable<Int16> MarginDefaultLeftWidth { get; set; } #Get or set the left margin in twips
public Nullable<Double> MarginDefaultLeftCentimeters { get; set; } #Get or set the left margin in centimeters
public Nullable<Int16> MarginDefaultRightWidth { get; set; } #Get or set the right margin in twips
public Nullable<Double> MarginDefaultRightCentimeters { get; set; } #Get or set the right margin in centimeters
public Nullable<Int16> CellSpacing { get; set; } #Get or set the cell spacing in twips
public Nullable<Double> CellSpacingCentimeters { get; set; } #Get or set the cell spacing in centimeters
public Nullable<Int16> TableIndentationWidth { get; set; } #Get or set the table indentation in twips.
public Nullable<Double> TableIndentationCentimeters { get; set; } #Get or set the table indentation in centimeters.