Click or drag to resize

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.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
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

DataColumn
A 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