The value of this property affects both ambient and non-ambient style attributes of the cell itself and, through object containment, ambient attributes of the cell's content.
For example, because Spacing is ignored for table cells, the following code does not affect the look of a table: RenderTable rt = new RenderTable(); rt.Cells[1, 2].Text = "My text."; rt.Cells[1, 2].Style.Spacing.All = "3mm";
while the following code adds 3mm of whie space around the text in the cell: RenderTable rt = new RenderTable(); rt.Cells[1, 2].Text = "My text."; rt.Cells[1, 2].CellStyle.Spacing.All = "3mm";