Click or drag to resize
Ranorex

DataRangeSet Class

A class that represents a collection of DataRange. This class enables to specify a set of ranges e.g. '10-20,33,45-80,90'.
Inheritance Hierarchy
SystemObject
  Ranorex.Core.TestingDataRange
    Ranorex.Core.TestingDataRangeSet

Namespace:  Ranorex.Core.Testing
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public class DataRangeSet : DataRange

The DataRangeSet type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyMaxRange
The maximum value of any range contained in the set.
(Overrides DataRangeMaxRange.)
Public propertyMinRange
The minimum value of any range contained in the set.
(Overrides DataRangeMinRange.)
Public propertyRanges
The ranges this set contains.
Top
Methods
  NameDescription
Public methodEquals(Object)
Compares the DataRangeSet to another object instance. Two ranges are equal if the contain the same ranges. The order of the ranges doesn't matter.
(Overrides DataRangeEquals(Object).)
Public methodEquals(DataRange)
Compares the DataRange to another DataRange.
(Inherited from DataRange.)
Public methodEquals(DataRangeSet)
Compares two data range sets if they are equal. Two range sets are equal if they contain the same ranges. The order of the ranges doesn't matter.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns a hash code for the DataRangeSet instance.
(Overrides DataRangeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParse
Parse a DataRangeSet from a given string. Valid strings are e.g. '10,20', '10-20,30-40' or '10,20,30,40-50,60-90,2'.
Public methodToString
Returns a string representation of the DataRangeSet, e.g. '10-20,32,54,60-920'.
(Overrides DataRangeToString.)
Public methodStatic memberTryCreateFromIndices
Will create a new DataRangeSet from a list of given row indices. E.g. the indices '10,11,12,15,23,24' will result in the DataRangeSet '10-12,15,23-24'.
Public methodStatic memberTryParse
Tries to parse a new DataRangeSet from a given string. This method never throws an exception.
Top
See Also