Skip to main content

TdxNavBarGroupViewInfo.Group Property

Returns a reference to the group affected by this TdxNavBarGroupViewInfo object.

Declaration

property Group: TdxNavBarGroup read;

Property Value

Type
TdxNavBarGroup

Remarks

Use this property when handling any of events that use the TdxNavBarGroupViewInfo object as the parameter. The Group property enables you to identify the group related to the event. For instance, you may use the OnCustomDraw.GroupCaption event to paint the header of a specific group in a custom manner. Since the event will fire for all groups in the NavBar control, you must check the Group property value to make sure that the desired group’s caption is being painted at the moment.

The Group property is also useful when you want to obtain specific group settings. For instance, when handling the OnCustomDraw.GroupCaption event, you may want to obtain the group’s caption text. This can be performed by reading the Caption property value of the object returned by the Group property.

See Also