Gets the Style of the current cell.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public Style Style { get; }
Visual Basic
Public ReadOnly Property Style As Style
	Get

Remarks

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:

Copy CodeC#
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:
Copy CodeC#
RenderTable rt = new RenderTable();
rt.Cells[1, 2].Text = "My text.";
rt.Cells[1, 2].CellStyle.Spacing.All = "3mm";

See Also