 | 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
Syntaxpublic static DataRange TryCreateFromIndices(
int[] indices
)
Public Shared Function TryCreateFromIndices (
indices As Integer()
) As DataRange
Parameters
- indices
- Type: SystemInt32
The indices that should be used to create the DataRange instance.
Return Value
Type:
DataRangeA new
DataRange instance if the indices represent a contineous range, null otherwise.
See Also