
884
|
Chapter 42: The System.Web.UI.WebControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
This class is often used by control developers, while the DataGrid and DataList controls are
preferred for ASP.NET applications, particularly if data binding is required.
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) ➝ Table
TableCell
System.Web.UI.WebControls (system.web.dll)
disposable
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 Table : WebControl {
// Public Constructors
public Table();
// Public Instance Properties
public virtual string BackImageUrl{set; get; }
public virtual int CellPadding{set; get; }
public virtual int CellSpacing{set; get; }
public virtual GridLines GridLines{set; get; }
public virtual HorizontalAlign HorizontalAlign{set; get; }
public virtual TableRowCollection Rows{get; }
// Protected Instance Methods ...