TdxNavBarLinkViewInfo.StyleItem Method
Specifies the style item assigned to the NavBar link.
Declaration
function StyleItem: TdxNavBarStyleItem; virtual;
Returns
Type |
---|
TdxNavBarStyleItem |
Remarks
The StyleItem property returns the custom style assigned to the link with respect to its current state. Thus it can return either the CustomStyles.Item, CustomStyles.ItemDisabled, CustomStyles.ItemHotTracked and CustomStyles.ItemPressed property value of the corresponding item. If the desired custom style is not set, this function returns nil.
Use this property when handling the OnCustomDraw.Link event. You can change property values of the object to change the look & feel of links. Using this technique is an alternative to specifying custom styles for each link of the NavBar control. Moreover, this enables you to apply various styles to links dynamically and provide various styles to links corresponding to the same item.
Note that if you want a link to be painted in default manner but with modified styles, you should leave the AHandled parameter of the OnCustomDraw.Link event unchanged (set to False).
Note
This property returns the custom style applied to the link. Use the Style property to access the default style applied to all links.