asp.net.ph

HtmlTableCell Class

System.Web.UI.HtmlControls Namespace


Allows programmatic access to individual table cell <th> and <td> elements in an HtmlTableRow.

HtmlTableCell Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HtmlTableCell ( )
public HtmlTableCell ( String tagName )

Collapse   Properties

Visibility Name Value Type Accessibility
public Align String [ Get , Set ]
public BgColor String [ Get , Set ]
public BorderColor String [ Get , Set ]
public ColSpan Int32 [ Get , Set ]
public Height String [ Get , Set ]
public NoWrap Boolean [ Get , Set ]
public RowSpan Int32 [ Get , Set ]
public VAlign String [ Get , Set ]
public Width String [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
protected RenderEndTag ( HtmlTextWriter writer ) Void

Remarks

The <th> element represents a table header cell, while the <td> element represents a data cell in a table. Use the HtmlTableCell control to programmatically access the individual HTML <th> and <td> elements on the server.

The HtmlTableCell class allows you to customize the appearance of a cell in a table by specifying the cell's BgColor, BorderColor, Height, and Width properties.

The Align property controls the horizontal alignment, while the VAlign property controls the vertical alignment of the contents within the cell.

You can also specify whether or not the content automatically continues on the next line when the end of the cell is reached, using the NoWrap property.

To control the number of columns or rows that a cell occupies, use the ColSpan or RowSpan properties.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see HtmlTableCell in ASP.NET Syntax for HTML Controls.

See Also

HtmlTable   HtmlTableRow   HtmlTableCellCollection   HtmlTableRowCollection Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph