Back to Devexpress

TdxCustomAdornerViewInfo Class

vcl-dxuiadorners-55725c43.md

latest2.3 KB
Original Source

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.

Inheritance

TObject TPersistent TcxOwnedPersistent TcxOwnedInterfacedPersistent TdxCustomAdornerViewInfo

See Also

TdxCustomAdorner.OnCustomDraw

TdxCustomAdorner.OnCustomDrawBackground

TdxUIAdornerManager.OnAdornerCustomDraw

TdxUIAdornerManager.OnAdornerCustomDrawBackground

TdxCustomAdornerViewInfo Members

dxUIAdorners Unit