Export (0) Print
Expand All

TableStyle Class

Represents the style for the Table control and some Web Parts.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public class TableStyle : Style
public class TableStyle extends Style
public class TableStyle extends Style

The 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 BackImageUrl property. The amount of spacing between the cells of a table is controlled by the CellSpacing property. The spacing between the contents of a cell and the cell border is specified using the CellPadding property. You can specify whether cell borders are displayed by setting the GridLines property. The horizontal alignment of the table in relation to other elements on the Web Forms page is indicated by the HorizontalAlign property.

NoteNote

This class is primarily used by control developers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft