| System.Web.UI.WebControls (system.web.dll) | class |
This class represents individual table cells in a
TableRow. The Text property
allows you to access the content stored in the cell. Most other
properties are used to fine-tune its appearance. You can set
Wrap to configure whether or not the contents in a
cell will wrap, and RowSpan and
ColumnSpan to specify that a cell should span the
specified number of columns or rows.
public class TableCell : WebControl {
// Public Constructors
public
TableCell ( );
// Public Instance Properties
public virtual int
ColumnSpan {set; get; }
public virtual HorizontalAlign
HorizontalAlign {set; get; }
public virtual int
RowSpan {set; get; }
public virtual string
Text {set; get; }
public virtual VerticalAlign
VerticalAlign {set; get; }
public virtual bool
Wrap {set; get; }
// Protected Instance Methods
protected override void
AddAttributesToRender (System.Web.UI.HtmlTextWriter
writer ); // overrides WebControl
protected override void
AddParsedSubObject (object
obj ); // overrides System.Web.UI.Control
protected override Style
CreateControlStyle ( ); // overrides WebControl
protected override void
RenderContents (System.Web.UI.HtmlTextWriter
writer ); // overrides WebControl
}
Hierarchy
System.Object
System.Web.UI.Control(System.ComponentModel.IComponent,
System.IDisposable,
System.Web.UI.IParserAccessor,
System.Web.UI.IDataBindingsAccessor)
WebControl(System.Web.UI.IAttributeAccessor)
TableCell
Subclasses
TableHeaderCell
Returned By
DayRenderEventArgs.Cell,
TableCellCollection.this
Passed To
Calendar.OnDayRender( ),
DataGridColumn.InitializeCell( ),
DayRenderEventArgs.DayRenderEventArgs( ),
TableCellCollection.{Add( ), AddAt(
), AddRange( ), GetCellIndex(
), Remove( )}