HtmlTableRowCollection Class

HtmlTableRowCollection Class

 

A collection of HtmlTableRow objects that represent the rows of an HtmlTable control. This class cannot be inherited.

Namespace:   System.Web.UI.HtmlControls
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.UI.HtmlControls.HtmlTableRowCollection

[<Sealed>]
type HtmlTableRowCollection = 
    class
        interface ICollection
        interface IEnumerable
    end

NameDescription
System_CAPS_pubpropertyCount

Gets the number of HtmlTableRow objects in the HtmlTableRowCollection collection.

System_CAPS_pubpropertyIsReadOnly

Gets a value indicating whether the HtmlTableRowCollection collection is read-only.

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether access to the HtmlTableRowCollection collection is synchronized (thread safe).

System_CAPS_pubpropertyItem(Int32)

Gets the HtmlTableRow object at the specified index from the HtmlTableRowCollection collection.

System_CAPS_pubpropertySyncRoot

Gets the object that can be used to synchronize access to the HtmlTableRowCollection collection.

NameDescription
System_CAPS_pubmethodAdd(HtmlTableRow)

Appends the specified HtmlTableRow object to the end of the HtmlTableRowCollection collection.

System_CAPS_pubmethodClear()

Removes all HtmlTableRow objects from the HtmlTableRowCollection collection.

System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the items from the HtmlTableRowCollection collection to the specified System.Array object, starting at the specified index in the array.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an System.Collections.IEnumerator-implemented object that contains all HtmlTableRow objects in the HtmlTableRowCollection collection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInsert(Int32, HtmlTableRow)

Adds an HtmlTableRow object to the specified location in the collection.

System_CAPS_pubmethodRemove(HtmlTableRow)

Removes the specified HtmlTableRow object from the HtmlTableRowCollection collection.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the HtmlTableRow object at the specified index from the HtmlTableRowCollection collection.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<'TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<'TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

Use the HtmlTableRowCollection class to programmatically manage a collection of HtmlTableRow objects that represent the rows in an HtmlTable control. This class is commonly used to add, remove, or modify the contents of a row in an HtmlTable control.

System_CAPS_noteNote

An HtmlTable control contains a Rows property that represents a collection of HtmlTableRow objects. Each HtmlTableRow represents an individual row in the table. An HtmlTableRow contains a Cells property that represents a collection of HtmlTableCell objects. These objects, in turn, represent the individual cells of the table. To retrieve an individual cell, first get the HtmlTableRow object, representing the row containing the cell, from the Rows collection of the HtmlTable control. You can then get the HtmlTableCell object, representing the cell in the row, from the Cells collection of the HtmlTableRow.

The following code example demonstrates how to dynamically generate the contents of an HtmlTable control by adding rows to an HtmlTableRowCollection collection. Notice that the Rows property of a table is the HtmlTableRowCollection object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft