API Reference

Class

WordTableStyleDetails

Namespace OfficeIMO.Word
Assembly OfficeIMO.Word

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

Methods

public Void ApplyBordersToAllCells() #
Returns: Void

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

public ValueTuple<Nullable<WordBorderStyle>, Nullable<UInt32>, String> GetBorderProperties(WordTableBorderSide side) #
Returns: ValueTuple<Nullable<WordBorderStyle>, Nullable<UInt32>, String>

Gets border properties for the specified side

Parameters

side OfficeIMO.Word.WordTableBorderSide requiredposition: 0
The border side to get properties for

Returns

A tuple with style, size, and color

public Void SetBordersForAllSides(WordBorderStyle style, UInt32 size, OfficeColor color) #
Returns: Void

Creates and sets a TableBorders object with the specified border settings

Parameters

style OfficeIMO.Word.WordBorderStyle requiredposition: 0
Border style for all sides
size System.UInt32 requiredposition: 1
Border size for all sides
color OfficeIMO.Drawing.OfficeColor requiredposition: 2
Border color for all sides
public Void SetBordersOutsideInside(WordBorderStyle outsideStyle, UInt32 outsideSize, OfficeColor outsideColor, WordBorderStyle insideStyle, UInt32 insideSize, OfficeColor insideColor) #
Returns: Void

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

Parameters

outsideStyle OfficeIMO.Word.WordBorderStyle requiredposition: 0
Style for outside borders
outsideSize System.UInt32 requiredposition: 1
Size for outside borders
outsideColor OfficeIMO.Drawing.OfficeColor requiredposition: 2
Color for outside borders
insideStyle OfficeIMO.Word.WordBorderStyle requiredposition: 3
Style for inside borders
insideSize System.UInt32 requiredposition: 4
Size for inside borders
insideColor OfficeIMO.Drawing.OfficeColor requiredposition: 5
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) #
Returns: Void

Creates a TableBorders object with custom settings for each side

Parameters

topStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null optionalposition: 0
topSize System.Nullable{System.UInt32} = null optionalposition: 1
topColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 2
bottomStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null optionalposition: 3
bottomSize System.Nullable{System.UInt32} = null optionalposition: 4
bottomColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 5
leftStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null optionalposition: 6
leftSize System.Nullable{System.UInt32} = null optionalposition: 7
leftColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 8
rightStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null optionalposition: 9
rightSize System.Nullable{System.UInt32} = null optionalposition: 10
rightColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 11
insideHStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null optionalposition: 12
insideHSize System.Nullable{System.UInt32} = null optionalposition: 13
insideHColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 14
insideVStyle System.Nullable{OfficeIMO.Word.WordBorderStyle} = null optionalposition: 15
insideVSize System.Nullable{System.UInt32} = null optionalposition: 16
insideVColor System.Nullable{OfficeIMO.Drawing.OfficeColor} = null optionalposition: 17

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.