Back to Devexpress

TcxGeometryObject Class

vcl-cxgeometry-a0d443ee.md

latest3.5 KB
Original Source

TcxGeometryObject Class

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

Declaration

delphi
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.

Geometry-Related API Members

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 | SaveToStreamAllow you to store the geometric primitive in a stream.OnChangeAllows you to respond to geometric primitive changes.

General-Purpose API Members

AssignCopies compatible settings between visual elements.BeginUpdate | EndUpdate | CancelUpdateAllow you to avoid excessive redraw operations during batch visual element changes.OwnerProvides access to the parent object.

Terminal TcxGeometryObject Class Descendants

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

TcxMarginStores pixel margins of a visual element.TcxOffsetsStores pixel offsets or margins of a visual element.TcxRectStores the area (bounding rectangle) of a visual element.TdxPointStores pixel coordinates of a point.TcxSizeStores pixel dimensions of a visual element.TdxPointDoublePersistentStores the coordinates of a point (in abstract measurement units).TdxSizeFloatStores dimensions in double precision floating-point coordinates.

Inheritance

TObject TPersistent TcxOwnedPersistent TcxOwnedInterfacedPersistent TcxLockablePersistent TcxGeometryObject

See Also

TcxPointBasedGeometryObject Class

TcxPointDoubleBasedGeometryObject Class

TcxRectBasedGeometryObject Class

TcxGeometryObject Members

cxGeometry Unit