Click or drag to resize
Ranorex

DataRangeTryCreateFromIndices Method

Creates a DataRange from a set of indices. The method will check if the indices represent a contineous range and if so will return this range. E.g. '10,11,12' will return the range '10-12' but the indices '10,12' will return null.

Namespace:  Ranorex.Core.Testing
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static DataRange TryCreateFromIndices(
	int[] indices
)

Parameters

indices
Type: SystemInt32
The indices that should be used to create the DataRange instance.

Return Value

Type: DataRange
A new DataRange instance if the indices represent a contineous range, null otherwise.
See Also