HtmlTableCellCollection Class
A collection of HtmlTableCell objects that represent the cells in a single row of an HtmlTable control. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
The HtmlTableCellCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of HtmlTableCell objects in the HtmlTableCellCollection collection. |
![]() | IsReadOnly | Gets a value indicating whether the HtmlTableCellCollection collection is read-only. |
![]() | IsSynchronized | Gets a value indicating whether access to the HtmlTableCellCollection collection is synchronized (thread safe). |
![]() | Item | Gets the HtmlTableCell object at the specified index from the HtmlTableCellCollection collection. |
![]() | SyncRoot | Gets the object that can be used to synchronize access to the HtmlTableCellCollection collection. |
| Name | Description | |
|---|---|---|
![]() | Add | Appends the specified HtmlTableCell object to the end of the HtmlTableCellCollection collection. |
![]() | Clear | Removes all HtmlTableCell objects from the HtmlTableCellCollection collection. |
![]() | CopyTo | Copies the items from the HtmlTableCellCollection collection to the specified System::Array, beginning with the specified index in the System::Array. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns a System.Collections::IEnumerator-implemented object that contains all HtmlTableCell objects in the HtmlTableCellCollection collection. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Insert | Adds the specified HtmlTableCell object at the specified index location of the HtmlTableCellCollection collection. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove | Removes the specified HtmlTableCell object from the HtmlTableCellCollection collection. |
![]() | RemoveAt | Removes the HtmlTableCell object at the specified index from the HtmlTableCellCollection collection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
![]() | AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
![]() | Cast<TResult> | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
![]() | OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
Use the HtmlTableCellCollection class to programmatically manage a collection of HtmlTableCell objects that represent the cells of a single row in an HtmlTable control. This class is commonly used to add, remove, or modify the contents of a cell in a row of an HtmlTable control.
Note |
|---|
An HtmlTable control contains a Rows property that contains a collection of HtmlTableRow objects. Each HtmlTableRow object represents an individual row in the table. An HtmlTableRow object contains a Cells property that represents a collection of HtmlTableCell objects. These objects, in turn, represent the individual cells of a row. To retrieve an individual cell, first get the HtmlTableRow object that represents the row containing the cell in the table (from the Rows collection of the HtmlTable control). You can then get the HtmlTableCell object that represents the cell in the row (from the Cells collection of the HtmlTableRow object). |
The following code example demonstrates how to dynamically generate the contents of an HtmlTable control by adding cells to an HtmlTableCellCollection collection. Notice that the Cells property of a row, represented by an HtmlTableRow object, is the HtmlTableCellCollection collection.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.




Note