TdxNavBarLinkViewInfo.Style Method
Returns the default style applied to the link.
Declaration
function Style: TdxNavBarBaseStyle; virtual;
Returns
Type |
---|
TdxNavBarBaseStyle |
Remarks
The Style property returns the default style assigned to the link with respect to its state. Thus it can return either the OptionsStyle.DefaultStyles.Item, OptionsStyle.DefaultStyles.ItemDisabled, OptionsStyle.DefaultStyles.ItemHotTracked and OptionsStyle.DefaultStyles.ItemPressed style.
Use this property when handling the OnCustomDraw.Link event. You can change property values of the object obtained via this property to change the look & feel of links. Using such a technique is an alternative to specifying custom styles for each item 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 default style applied to all links within the control. Use the StyleItem property to access the custom style applied to the link.