PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview Namespace / TableCell Class / Style Property

In This Topic
    Style Property (TableCell)
    In This Topic
    Gets the Style of the current cell.
    Syntax
    'Declaration
     
    Public ReadOnly Property Style As Style
    public Style 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 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";

    See Also