Click or drag to resize

EditCommandsPasteFromTable Method

Pastes data from a table (usually deserialized table from the clipboard) into a worksheet. The paste operation depends on the current selection of columns, rows, or property columns.

Namespace: Altaxo.Worksheet.Commands
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void PasteFromTable(
	IWorksheetController ctrl,
	DataTable sourcetable
)

Parameters

ctrl  IWorksheetController
The worksheet to paste into.
sourcetable  DataTable
The table which contains the data to paste into the worksheet.
Remarks
The paste operation is defined in the following way: If nothing is currently selected, the columns are appended to the end of the worksheet and the property data are set for that columns. If only columns are currently selected, the data is pasted in that columns (column by column). If number of selected columns not match the number of columns in the paste table, but match the number of rows in the paste table, the paste is done column by row.
See Also