RowCommandsCopyRowToRowByColumnIndex Method |
Copies one row of a
DataColumnCollection to another row in the same or in another
DataColumnCollection.
The columns in the source collection are mapped to the columns in the destination collection by index (plus an optional offset).
Namespace: Altaxo.DataAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static void CopyRowToRowByColumnIndex(
this DataColumnCollection sourceTable,
int sourceRowIndex,
IAscendingIntegerCollection selectedSourceDataColumns,
DataColumnCollection destinationTable,
int destinationRowIndex,
int destinationColumnOffset
)
Parameters
- sourceTable DataColumnCollection
- The source DataColumnCollection.
- sourceRowIndex Int32
- Index of the source row.
- selectedSourceDataColumns IAscendingIntegerCollection
- The selected source data columns. If this parameter is null, all source columns are selected for copying.
- destinationTable DataColumnCollection
- The destination DataColumnCollection.
- destinationRowIndex Int32
- Index of the destination row.
- destinationColumnOffset Int32
- The destination column offset. A column i in the source collection is copied to column i + destinationColumnOffset in the destination collection.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataColumnCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also