System.Web.UI.WebControls.TableStyle Class

Represents the style for the System.Web.UI.WebControls.Table control and some Web Parts.

See Also: TableStyle Members

Syntax

public class TableStyle : Style

Remarks

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.

Note:

This class is primarily used by control developers.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0