Description
Returns an int representing the width of a particular column. The GetPreferredColumnWidth method returns the width of the column in twips. One twip = (1/20 pt) or (1/1440 in).
C#
public int GetPreferredColumnWidth(int column)
vb.net
Public Function GetPreferredColumnWidth(ByVal column As Integer) As Integer
Parameters
column
Anint representing the column index of the desired column.
Returns
Anint representing the width in twips for the column at the specified column index.
Remarks
MS Word equivalent: Table menu > Table properties... > Column tab > Size section > Column #: > Preferred width:Examples
C#
//--- Get the width of the 3rd column
int columnWidth = oTable.GetPreferredColumnWidth(2);
vb.net
'--- Get the width of the 3rd column
Dim columnWidth As Integer = oTable.GetPreferredColumnWidth(2)
