C1.C1Preview Namespace > TableCell Class : Style Property |
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 Style.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";
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2