RegionHelperGetRegionRanges Method |
Gets the region ranges.
Namespace: Altaxo.Science.SpectroscopyAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IEnumerable<(int Start, int End)> GetRegionRanges(
int[]? regions,
int arrayLength
)
Parameters
- regions Int32
- The regions. Each element designates the start index of a new region.
It is not neccessary to set the first point of the array to zero. If null or an empty array is provided,
the full region is returned.
- arrayLength Int32
- Length of the array.
Return Value
IEnumerableValueTupleInt32,
Int32Enumeration of regions as tuple of start index and end index (exclusive).
See Also