Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxRectBasedGeometryObject Class

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

#Declaration

Delphi
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