public PdfPTable(float[] relativeWidths)
{
if (relativeWidths == null)
throw new ArgumentNullException(
MessageLocalization.GetComposedMessage("the.widths.array.in.pdfptable.constructor.can.not.be.null"));
if (relativeWidths.Length == 0)
throw new ArgumentException(
MessageLocalization.GetComposedMessage(
"the.widths.array.in.pdfptable.constructor.can.not.have.zero.length"));
this.relativeWidths = new float[relativeWidths.Length];
Array.Copy(relativeWidths, 0, this.relativeWidths, 0, relativeWidths.Length);
absoluteWidths = new float[relativeWidths.Length];
CalculateWidths();
currentRow = new PdfPCell[absoluteWidths.Length];
keepTogether = false;
}