IncludeTextContainsGetSelectedRowIndexSegmentsFromTo Method |
Gets the selected row indices as segments of (startIndex, endIndexExclusive), beginning with no less than the start index and less than the maximum index.
Namespace: Altaxo.Data.SelectionsAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public IEnumerable<(int start, int endExclusive)> GetSelectedRowIndexSegmentsFromTo(
int startIndex,
int maxIndexExclusive,
DataColumnCollection? table,
int totalRowCount
)
Parameters
- startIndex Int32
- The start index. Each segment that is returned has to start at an index being equal to or greater than this value.
- maxIndexExclusive Int32
- The maximum index. Each segment that is returned has to have an endExclusive value being less than or equal to 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
IEnumerableValueTupleInt32,
Int32The segments of selected row indices, beginning with a segment starting at no less than the start index and ending with a segment whose endExclusive value is less than or equal to the maximum index.
Implements
IRowSelectionGetSelectedRowIndexSegmentsFromTo(Int32, Int32, DataColumnCollection, Int32)See Also