Click or drag to resize

IRowSelectionExtensionsGetSelectedRowIndicesFromTo Method

Gets the selected row indices continuously, beginning with no less than the start index and less than the maximum index.

Namespace: Altaxo.Data.Selections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static IEnumerable<int> GetSelectedRowIndicesFromTo(
	this IRowSelection rowSelection,
	int startIndex,
	int maxIndexExclusive,
	DataColumnCollection? table,
	int totalRowCount
)

Parameters

rowSelection  IRowSelection
The row selection.
startIndex  Int32
The start index. Each row index that is returned has to be equal to or greater than this value.
maxIndexExclusive  Int32
The maximum index. Each row index that is returned has to be less than this value.
table  DataColumnCollection
The underlying data column collection. All columns that are part of the row selection should either be standalone or belong to this collection.
totalRowCount  Int32
The maximum number of rows (and therefore the row index after the last inclusive row index) that could theoretically be returned, for instance if the selection is AllRows. This parameter is neccessary because some of the selections (e.g. RangeOfRowIndices) work relative to the start or to the end of the maximum possible range, and therefore need this range for calculations.

Return Value

IEnumerableInt32
The selected row indices, beginning with no less than the start index and less than the maximum index.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IRowSelection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also