DataColumnCreateColumnOfSelectedRows(DataColumn, IAscendingIntegerCollection, Int32) Method |
Creates a new column, consisting only of the selected rows of the original column
x. If x is null, a new
DoubleColumn will
be returned, consisting of the selected row indices.
Namespace: Altaxo.DataAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static DataColumn CreateColumnOfSelectedRows(
DataColumn? x,
IAscendingIntegerCollection? selectedRows,
int numrows
)
Parameters
- x DataColumn
- The original column (can be null).
- selectedRows IAscendingIntegerCollection
- Selected row indices (can be null - then the entire column is used).
- numrows Int32
- Number of rows to create. Must not more than contained in selectedRows.
Return Value
DataColumnA freshly created column consisting of x at the selected indices, or of the indices itself if x was null.
See Also