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

Unit Border

Unit Measurement Grooper.IP

Defines the size of a border on each side of a rectangle using unit-aware values.

Remarks

Unit Border allows you to specify the thickness of the left, top, right, and bottom borders of a rectangle using unit-aware string values. Each side can be configured independently, or you can use shorthand notation to set multiple sides at once.

This class is commonly used in layout, image processing, and document analysis scenarios where border sizes must be specified in physical or logical units, or as a percentage or pixel value.

Usage

  • To set all borders to the same value: 12mm
  • To set left/right and top/bottom independently: 0.5in, 0.75in
  • To set each side individually: 10px, 15px, 5px, 8px

You may enter values directly as a comma-separated string, or expand the property in the UI to edit each side separately.

Supported Unit Types

The following unit types are supported when specifying values for Unit Border:

  • px: Pixels
  • in: Inches
  • pt: Points (1/72 of an inch)
  • cm: Centimeters
  • mm: Millimeters
  • %: Percent (context-dependent, typically relative to a parent or container)

When configuring a Unit Border, ensure that the units are appropriate for the context in which the border will be used. The system will automatically convert between units as needed. If all sides are set to the same value, you may enter a single value for all.

Examples

  • 10px, 15px, 5px, 8px: Sets left, top, right, and bottom borders in pixels.
  • 0.5in, 0.75in: Sets left/right to 0.5 inches, top/bottom to 0.75 inches.
  • 12mm: Sets all borders to 12 millimeters.

Properties

NameTypeDescription

Used By

Notification