Einhugur Word Plugin for Xojo |

# Table.ColumnWidth Method

Setter method for setting column width.

ColumnWidth(
index as Integer,
unit as EinhugurWord.Units,
assigns value as Double)

#### Parameters

index
  Index of the column to set the width for. (Zero based)
unit
  Unit type for the value passed into the value parameter.
value (assign parameter)
  Setter parameter to set the value.

#### Remarks

The actual width you get also depends on available space and the Table width setting.
This method will throw OutOfBoundsException if index is out of range.
// Add some table
var t as Table = doc.AppendTable(3,2)
t.ColumnWidth(0, EinhugurWord.Units.CM) = 2
t.ColumnWidth(1, EinhugurWord.Units.CM) = 7
t.ColumnWidth(2, EinhugurWord.Units.CM) = 3

#### See Also

Table Class