Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Integer Range

Grooper Object Grooper.IP

Defines a range of integer values.

Remarks

The Integer Range class is used to represent a numeric interval with optional lower and upper bounds, using integer values. This is commonly used in Grooper to configure settings that require a minimum and/or maximum integer value, such as page counts, index ranges, or other integer constraints.

The range is defined by the 'Minimum' and 'Maximum' properties, which can be set independently. Either property may be left unset (null), in which case the range is considered unbounded on that side. For example, setting only 'Minimum' creates a range of >= Minimum, while setting only 'Maximum' creates a range of <= Maximum. If both are unset, the range is considered empty.

When configuring an Integer Range, you can specify the values directly, or use the text entry format supported by the property grid. This format allows for flexible input, such as:

5 - 10 >= 3 <= 7 8

The Integer Range is used throughout Grooper wherever a numeric interval is needed, and supports validation to ensure that the minimum is not greater than the maximum. When configuring, consider the context in which the range is used, and set the bounds appropriately to control the allowed values.

Usage Notes

  • If 'Minimum' is greater than 'Maximum', a validation error will be generated.
  • Leaving both 'Minimum' and 'Maximum' unset results in an empty range, which may be interpreted as "no constraint" or "not set" depending on the context.
  • The string representation of the range is user-friendly and adapts to the values set, making it easy to review configurations.

Properties

NameTypeDescription

Used By

Notification