TdxNavBarLinkViewInfo Class
Contains information about the look & feel of a NavBar link.
Declaration
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.
Member | Description |
---|---|
CaptionRect | Returns the bounding rectangle of the link caption. |
ImageRect | Returns the bounding rectangle of the link image. |
Rect | Returns the bounding rectangle of the whole link. |
SelectionRect | Returns the selection rectangle for the link. |
State | Returns 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
See Also