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

Logical Range

Logical Measurement Grooper.IP

Defines a range of distances.

Remarks

Logical Range is used to define a range of distances or sizes in Grooper, where each bound can be specified using a value and unit (such as 2.5in, 5pt, 3cm, or 10mm). This allows for flexible configuration of measurements that adapt to different page sizes and logical coordinate systems.

The range is defined by two properties: 'Minimum' and 'Maximum'. Each can be set independently, or both can be set to the same value to specify an exact distance. If only one bound is set, the range is considered open-ended on the other side.

Usage

  • To specify an exact value, set both 'Minimum' and 'Maximum' to the same value (e.g., 2in).
  • To specify a range, set 'Minimum' and 'Maximum' to different values (e.g., 1in and 2in).
  • To specify only a minimum, leave 'Maximum' blank (e.g., > 5pt).
  • To specify only a maximum, leave 'Minimum' blank (e.g., < 3cm).

The values are parsed and validated using Grooper's unit system, and are automatically converted to logical (inch-based) values as needed for processing. Unlike Unit Range, Logical Range does not support pixel (px) or percent (%) units, as these are not meaningful in logical coordinate contexts.

Examples

  • 1in - 2in: Defines a range from 1 to 2 inches.
  • 5pt: Sets both minimum and maximum to 5 points.
  • < 3cm: Sets a maximum of 3 centimeters, with no minimum.
  • > 10mm: Sets a minimum of 10 millimeters, with no maximum.

Supported Unit Types

The following unit types are supported when specifying values for Logical Range:

  • in: Inches
  • pt: Points (1/72 of an inch)
  • cm: Centimeters
  • mm: Millimeters

Note: The px (pixels) and % (percent) units are not supported in Logical Range. Attempting to use these units will result in a validation error.

When configuring a Logical Range, ensure that the units are appropriate for the logical context in which the range will be used. If the minimum value is greater than the maximum, validation will fail.

The Logical Range is commonly used in scenarios where measurements must be specified in logical (physical) units, such as inches or points, rather than device-dependent units like pixels.

Properties

NameTypeDescription

Used By

Notification