Back to Devexpress

TdxNavBarLinkViewInfo Class

vcl-dxnavbar-c609a18e.md

latest2.0 KB
Original Source

TdxNavBarLinkViewInfo Class

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

Declaration

delphi
TdxNavBarLinkViewInfo = class(
    TdxNavBarChildCaptionViewInfo
)

Remarks

The TdxNavBarLinkViewInfo object is passed as the parameter to the OnCustomDraw.Link event. This object enables you to identify the link related to the event via the Link property. Its associated item can be obtained using the Item property.

When handling custom painting events, you will need information about the layout of elements within the link and the link state. The following table lists the most commonly used class members that provide such information.

MemberDescription
CaptionRectReturns the bounding rectangle of the link caption.
ImageRectReturns the bounding rectangle of the link image.
RectReturns the bounding rectangle of the whole link.
SelectionRectReturns the selection rectangle for the link.
StateReturns the current state of the link.

Note that you can also obtain all the style characteristics applied to the link via the methods of the TdxNavBarLinkViewInfo object.

Inheritance

TObject TdxNavBarCustomViewInfo TdxNavBarCustomItemViewInfo TdxNavBarChildCaptionViewInfo TdxNavBarLinkViewInfo

See Also

TdxNavBarLinkViewInfo Members

dxNavBar Unit