System.Web.UI.WebControls Namespace TableCellCollection Class
Copies the items from the Table.Rows collection to an array.
[ VB ]
NotOverridable Public Sub CopyTo ( _
ByVal array As Array, _
ByVal index As Integer _
)
[ C# ]
public void CopyTo (
Array array,
int index
);
[ C++ ]
public: __sealed void CopyTo (
Array* array,
int index
);
[ JScript ]
public function CopyTo (
array : Array,
index : int
);
- array
- A zero-based Array that receives the copied items from the TableCellCollection.
- index
- The first index in the specified array to receive the items.
Use this method to copy the contents of the TableCellCollection into the specified System.Array object, starting at the specified index in the array.
NOTE: The array parameter must be a zero-based System.Array object.
The following example demonstrates how to use the CopyTo method to copy the items from the TableCellCollection into a specified array.
TableCell [ ] myCellArray = new TableCell [ ];
// copy the collection to an array.
myTable.Rows [ row ].Cells.CopyTo ( myCellArray, 0 );
Dim myCellArray ( 6 ) As TableCell
' copy the collection to an array.
myTable.Rows ( row ).Cells.CopyTo ( myCellArray, 0 ) |
|
C# |
VB |
TableCellCollection Members