The Autodesk.Revit.DB.IntegerRange class represents a range of integer values in Revit.
This class has two properties:
Start: The starting value of the range.End: The ending value of the range.This class has two constructors:
IntegerRange(int start, int end): Creates a new IntegerRange instance with the given start and end values.IntegerRange(IList<int> values): Creates a new IntegerRange instance with the minimum and maximum values from the given list of integers.This class has one method:
Contains(int value): Returns a boolean indicating whether the given value is within the range.using Autodesk.Revit.DB;
IntegerRange range = new IntegerRange(1, 10);
bool containsFive = range.Contains(5); // true
bool containsEleven = range.Contains(11); // false