DataColumnCreateColumnOfSelectedRows(DataColumn, IAscendingIntegerCollection) 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
)
Parameters
- x DataColumn
- The original column (can be null).
- selectedRows IAscendingIntegerCollection
- Selected row indices (can be null - then the entire column is used).
Return Value
DataColumnA freshly created column consisting of x at the selected indices, or of the indices itself if x was null. If both x and selectedRows are null,
an empty
DoubleColumn is returned.
See Also