Sets the widths of the different columns (percentages).

Namespace: iTextSharp.text
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public float[] Widths { set; }
Visual Basic
Public WriteOnly Property Widths As Single()
	Set
Visual C++
public:
property array<float>^ Widths {
	void set (array<float>^ value);
}

Field Value

an array with values

Remarks

You can give up relative values of borderwidths. The sum of these values will be considered 100%. The values will be recalculated as percentages of this sum.

Examples

float[] widths = {2, 1, 1}; table.SetWidths(widths) The widths will be: a width of 50% for the first column, 25% for the second and third column.

See Also