API Reference
WordTableStyleDetails
Manages table style settings and borders.
Inheritance
- Object
- WordTableStyleDetails
Constructors
WordTableStyleDetails(OfficeIMO.Word.WordTable table) #Constructor for Table Style Details
Parameters
- table OfficeIMO.Word.WordTable
Methods
public Void ApplyBordersToAllCells() #VoidApply the current table's border settings to all cells in the table
public ValueTuple<Nullable<BorderValues>, UInt32Value, String> GetBorderProperties(WordTableBorderSide side) #ValueTuple<Nullable<BorderValues>, UInt32Value, 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(BorderValues style, UInt32Value size, Color color) #VoidCreates and sets a TableBorders object with the specified border settings
Parameters
- style DocumentFormat.OpenXml.Wordprocessing.BorderValues
- Border style for all sides
- size DocumentFormat.OpenXml.UInt32Value
- Border size for all sides
- color SixLabors.ImageSharp.Color
- Border color for all sides
public Void SetBordersOutsideInside(BorderValues outsideStyle, UInt32Value outsideSize, Color outsideColor, BorderValues insideStyle, UInt32Value insideSize, Color insideColor) #VoidCreates a TableBorders object with different settings for outside and inside borders
Parameters
- outsideStyle DocumentFormat.OpenXml.Wordprocessing.BorderValues
- Style for outside borders
- outsideSize DocumentFormat.OpenXml.UInt32Value
- Size for outside borders
- outsideColor SixLabors.ImageSharp.Color
- Color for outside borders
- insideStyle DocumentFormat.OpenXml.Wordprocessing.BorderValues
- Style for inside borders
- insideSize DocumentFormat.OpenXml.UInt32Value
- Size for inside borders
- insideColor SixLabors.ImageSharp.Color
- Color for inside borders
public Void SetCustomBorders(Nullable<BorderValues> topStyle = null, UInt32Value topSize = null, Nullable<Color> topColor = null, Nullable<BorderValues> bottomStyle = null, UInt32Value bottomSize = null, Nullable<Color> bottomColor = null, Nullable<BorderValues> leftStyle = null, UInt32Value leftSize = null, Nullable<Color> leftColor = null, Nullable<BorderValues> rightStyle = null, UInt32Value rightSize = null, Nullable<Color> rightColor = null, Nullable<BorderValues> insideHStyle = null, UInt32Value insideHSize = null, Nullable<Color> insideHColor = null, Nullable<BorderValues> insideVStyle = null, UInt32Value insideVSize = null, Nullable<Color> insideVColor = null) #VoidCreates a TableBorders object with custom settings for each side
Parameters
- topStyle System.Nullable{DocumentFormat.OpenXml.Wordprocessing.BorderValues} = null
- topSize DocumentFormat.OpenXml.UInt32Value = null
- topColor System.Nullable{SixLabors.ImageSharp.Color} = null
- bottomStyle System.Nullable{DocumentFormat.OpenXml.Wordprocessing.BorderValues} = null
- bottomSize DocumentFormat.OpenXml.UInt32Value = null
- bottomColor System.Nullable{SixLabors.ImageSharp.Color} = null
- leftStyle System.Nullable{DocumentFormat.OpenXml.Wordprocessing.BorderValues} = null
- leftSize DocumentFormat.OpenXml.UInt32Value = null
- leftColor System.Nullable{SixLabors.ImageSharp.Color} = null
- rightStyle System.Nullable{DocumentFormat.OpenXml.Wordprocessing.BorderValues} = null
- rightSize DocumentFormat.OpenXml.UInt32Value = null
- rightColor System.Nullable{SixLabors.ImageSharp.Color} = null
- insideHStyle System.Nullable{DocumentFormat.OpenXml.Wordprocessing.BorderValues} = null
- insideHSize DocumentFormat.OpenXml.UInt32Value = null
- insideHColor System.Nullable{SixLabors.ImageSharp.Color} = null
- insideVStyle System.Nullable{DocumentFormat.OpenXml.Wordprocessing.BorderValues} = null
- insideVSize DocumentFormat.OpenXml.UInt32Value = null
- insideVColor System.Nullable{SixLabors.ImageSharp.Color} = 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 TableBorders TableBorders { get; set; } #Get or set the table borders
public TableCellMarginDefault TableCellMarginDefault { get; set; } #Get or set the table cell margin default