Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxNavBarLinkViewInfo.Style Method

Returns the default style applied to the link.

#Declaration

Delphi
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.

See Also