JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the HtmlTableCell Class

This class gives you access to individual HTML <td> and <th> elements enclosed within an HtmlTableRow control in server code. Here is the inheritance hierarchy for this class:

Object
   Control
      HtmlControl
         HtmlContainerControl
            HtmlTableCell

You can find the notable public properties of HtmlTableCell objects in Table 19.28. (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.28: Noteworthy public properties of HtmlTableCell objects.

Property

Means

Align

Gets/sets the horizontal alignment of a table's content.

BgColor

Gets/sets the background color of a table cell.

BorderColor

Gets/sets the border color of a table cell.

ColSpan

Gets/sets the number of columns spanned by the table cell.

Height

Gets/sets the height of a table cell (in pixels).

NoWrap

Gets/sets whether text in a table cell wraps.

RowSpan

Gets/sets the number of rows spanned by a table cell.

VAlign

Gets/sets the vertical alignment of a table's content.

Width

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

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor