Description |
---|
Excerpt |
---|
Sets an |
Signature | C# | C# |
---|---|---|
Wiki Markup | ||
{description}
{excerpt}Sets an {{int}} representing the width of a particular column. In order to set the width of a column, you must first set the [PreferredColumnWidthUnit|Table.SetPreferredColumnWidthUnits(Int32, TableCell.WidthUnits)] of that column.{excerpt}
{signature:C#}
public void SetPreferredColumnWidth(int column, int width)
| ||
Signature | ||
{signature}{signature:vb.net | vb.net | }
Public Sub SetPreferredColumnWidth(ByVal column As Integer, ByVal width As Integer)
|
Parameters |
---|
...
An int
representing the index of the column for which to change the width.
...
An int
representing the column's new width in twips. One twip = (1/20 pt) or (1/1440 in).
Remarks |
---|
MS Word equivalent: Table menu > Table properties... > Column tab > Size section > Column #: > Preferred width: |
Example | |||
---|---|---|---|
Code Block | | csharp | csharp |
title | C# | ||
Code Block | vb.net | title |