public void AllowAutoFitOnTable()
{
Document doc = new Document();
Table table = new Table(doc);
table.EnsureMinimum();
//ExStart
//ExFor:Table.AllowAutoFit
//ExId:AllowAutoFit
//ExSummary:Shows how to set a table to shrink or grow each cell to accommodate its contents.
table.AllowAutoFit = true;
//ExEnd
}