asp.net.ph

TableCellCollection.CopyTo Method

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
);

Parameters

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.

Remarks

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.

Example

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 );
  C# VB

See Also

TableCellCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph