Skip to main content

TcxGeometryObject Class

The base class for all objects that store geometry-related information.

Declaration

TcxGeometryObject = class(
    TcxLockablePersistent
)

Remarks

All visual elements in DevExpress controls can scale automatically according to monitor DPI changes when the application receives the WM_DPICHANGED system message.

Main API Members

The list below outlines key members of the TcxGeometryObject class. You can use these members to work with visual elements.

ChangeScale

Scales the geometric primitive according to specified numerator and denominator values.

Note

All DevExpress controls call this procedure automatically to scale their visual elements. You may need to call this procedure only if you implement a custom component that uses a TcxGeometryObject class descendant.

LoadFromStream | SaveToStream
Allow you to store the geometric primitive in a stream.
OnChange
Allows you to respond to geometric primitive changes.

General-Purpose API Members

Assign
Copies compatible settings between visual elements.
BeginUpdate | EndUpdate | CancelUpdate
Allow you to avoid excessive redraw operations during batch visual element changes.
Owner
Provides access to the parent object.

Terminal TcxGeometryObject Class Descendants

Do not use the TcxGeometryObject class directly. Use the following descendants instead:

TcxMargin
Stores pixel margins of a visual element.
TcxOffsets
Stores pixel offsets or margins of a visual element.
TcxRect
Stores the area (bounding rectangle) of a visual element.
TdxPoint
Stores pixel coordinates of a point.
TcxSize
Stores pixel dimensions of a visual element.
TdxPointDoublePersistent
Stores the coordinates of a point (in abstract measurement units).
TdxSizeFloat
Stores dimensions in double precision floating-point coordinates.
See Also