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

TdxCustomAdornerViewInfo Class

The base class for all classes that implement UI adorner ViewInfo classes.

#Declaration

Delphi
TdxCustomAdornerViewInfo = class(
    TcxOwnedInterfacedPersistent
)

#Remarks

This class provides the following members that allow you to:

  • Access the currently painted adorner and its UI adorner manager (Adorner and Manager).
  • Paint an adorner on the specified canvas (Paint).
  • Obtain the adorner’s bounding rectangle for custom painting (Bounds).

The TdxAdornerCustomDrawEvent procedural type’s AViewInfo parameter references a TdxCustomAdornerViewInfo object allowing you to access the badge or guide adorner ViewInfo information within a custom draw event handler.

To obtain adorner-specific ViewInfo information within a custom draw event handler, you need to cast a TdxCustomAdornerViewInfo object to the TdxBadgeViewInfo or TdxGuideViewInfo class, depending on the actual type of the currently painted adorner.

See Also