Back to Devexpress

TdxNavBarGroupViewInfo Class

vcl-dxnavbar-eb3ec69f.md

latest2.5 KB
Original Source

TdxNavBarGroupViewInfo Class

Contains information about the look & feel of a NavBar group.

Declaration

delphi
TdxNavBarGroupViewInfo = class(
    TdxNavBarCustomItemViewInfo
)

Remarks

The TdxNavBarGroupViewInfo object is passed as the parameter to the OnCustomDraw.GroupCaption, OnCustomDraw.GroupClientBackground, OnCustomDraw.GroupClientForeground and OnCalcGroupClientHeight events. This object enables you to identify the group related to the event via the Group property.

When handling custom painting events, you will need information about the layout of elements within the group. The following table lists the most commonly used properties that provide such information.

PropertyDescription
CaptionRectReturns the bounding rectangle of the group header.
CaptionImageRectReturns the bounding rectangle of an image displayed within the group header.
CaptionSignRectReturns the bounding rectangle of the group header sign.
CaptionTextRectReturns the bounding rectangle of the text displayed within the group header.
ItemsRectReturns the bounding rectangle of the group’s client area.
StateReturns the current state of the group header (hot-tracked, pressed, etc.).

Note that you can also obtain all the style characteristics applied to the group header and its client area via the methods of the TdxNavBarGroupViewInfo object.

Inheritance

TObject TdxNavBarCustomViewInfo TdxNavBarCustomItemViewInfo TdxNavBarGroupViewInfo

See Also

TdxNavBarGroupViewInfo Members

dxNavBar Unit