JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the HtmlTable Class

This class gives you access to HTML <table> elements in server code. Here is the inheritance hierarchy for this class:

Object
   Control
      HtmlControl
         HtmlContainerControl
            HtmlTable

You can find the notable public properties of HtmlTable objects in Table 19.26. (This class has no non-inherited methods or events.) Note that as with other HTML server controls, I am not listing the notable properties, methods, and events this class inherits from the Control class; you can find them in Chapter 15, Tables 15.1 to 15.3. This class also inherits the HtmlControl class—you can find that class in Table 19.2—and the HtmlContainerControl class, which you can find in Table 19.3.

Table 19.26: Noteworthy public properties of HtmlTable objects.

Property

Means

Align

Gets/sets the alignment of table contents in a table.

BgColor

Gets/sets the background color of a table.

Border

Gets/sets the width of the border of a table (in pixels).

BorderColor

Gets/sets the border color of a table.

CellPadding

Gets/sets the cell padding for a table (in pixels).

CellSpacing

Gets/sets the cell spacing for a table (in pixels).

Height

Gets/sets the height of a table.

Rows

Gets a collection of all the rows in a table.

Width

Gets/sets the width of a table.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor