Main Page

  Previous Section Next Section


System.Web.UI.HtmlControls (system.web.dll)class

This class represents individual <td> (table data) and <th> (table header) elements contained in an HTML table row. The InnerHtml and InnerText properties allow you to access the content stored in an individual cell. Most other properties are used to fine-tune the appearance of a particular cell. You can set NoWrap to configure whether or not the contents in a cell will wrap and RowSpan and ColSpan to specify that a cell should span the specified number of columns or rows.

public class HtmlTableCell : HtmlContainerControl {
// Public Constructors
   public HtmlTableCell( );
   public HtmlTableCell(string tagName);
// Public Instance Properties
   public string Align{set; get; }
   public string BgColor{set; get; }
   public string BorderColor{set; get; }
   public int ColSpan{set; get; }
   public string Height{set; get; }
   public bool NoWrap{set; get; }
   public int RowSpan{set; get; }
   public string VAlign{set; get; }
   public string Width{set; get; }
// Protected Instance Methods
   protected override void RenderEndTag(System.Web.UI.HtmlTextWriter writer); // overrides HtmlContainerControl


System.Object System.Web.UI.Control(System.ComponentModel.IComponent, System.IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor) HtmlControl(System.Web.UI.IAttributeAccessor) HtmlContainerControl HtmlTableCell

Returned By


Passed To

HtmlTableCellCollection.{Add( ), Insert( ), Remove( )}

      Previous Section Next Section