Skip to main content

TcxRectBasedGeometryObject Class

The base class for persistent classes that store geometry-related information as a TRect record.

Declaration

TcxRectBasedGeometryObject = class(
    TcxGeometryObject
)

Remarks

This class extends its ancestor with members that allow you to do the following:

  • Specify corner positions or individual margins (Left, Top, Right, and Bottom).

  • Identify if geometry information corresponds to an empty rectangle or zero margins (IsEmpty.

  • Compare geometry information to a rectangle (IsEqual).

  • Specify dimensions (Width and Height).

  • Identify if geometry information matches its initial state (IsDefault).

  • Restore the initial geometry information (Reset).

  • Obtain or update geometry information as a TRect value (Value).

Refer to the TcxGeometryObject and TcxLockablePersistent class description for information on functionality available for all geometry objects.

Do not use the TcxRectBasedGeometryObject class directly. Use one of the following descendant classes instead:

  • TcxMargin (stores a rectangular object’s margins, in pixels).
  • TcxOffsets (stores pixel offsets of a visual object).
  • TcxRect (stores the area and position (bounding rectangle) of a visual object).
See Also