Click or drag to resize

EditCommandsPasteFromTableColumnsTransposedToSelectedPropertyColumns Method

Pastes data from a table (usually deserialized table from the clipboard) into a worksheet, which has currently selected property columns. The sourceTable is transposed before pasting, i.e. the number of selected property columns has to match the number of data (!) rows of the source table.

Namespace: Altaxo.Worksheet.Commands
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
protected static void PasteFromTableColumnsTransposedToSelectedPropertyColumns(
	IWorksheetController dg,
	DataTable sourceTable
)

Parameters

dg  IWorksheetController
The worksheet to paste into.
sourceTable  DataTable
The table which contains the data to paste into the worksheet.
Remarks
The operation is defined as follows: if the is no ro selection, the data are inserted beginning at row[0] of the destination table. If there is a row selection, the data are inserted in the selected rows, and then in the rows after the last selected rows. No exception is thrown if a column type does not match the corresponding source column type. The columns to paste into do not change their name, kind or group number. But property columns in the source table are pasted into the destination table.
See Also