Represents the style for the System.Web.UI.WebControls.Table control and some Web Parts.
See Also: TableStyle Members
The System.Web.UI.WebControls.TableStyle class is used to represent the style for a table control. It encapsulates the properties that control the appearance of a table and can be applied to multiple table controls to provide a common appearance.
You can specify an image to display in the background of the table by setting the TableStyle.BackImageUrl property. The amount of spacing between the cells of a table is controlled by the TableStyle.CellSpacing property. The spacing between the contents of a cell and the cell border is specified using the TableStyle.CellPadding property. You can specify whether cell borders are displayed by setting the TableStyle.GridLines property. The horizontal alignment of the table in relation to other elements on the Web Forms page is indicated by the TableStyle.HorizontalAlign property.
This class is primarily used by control developers.