Skip to main content

TdxNavBarStyle Class

Contains the style settings for an element’s contents.

Declaration

TdxNavBarStyle = class(
    TdxNavBarBaseStyle
)

Remarks

The TdxNavBarStyle object represents a single style within the NavBar component. It inherits all the properties declared by the TdxNavBarBaseStyle object and used to customize the look and feel of particular NavBar elements’ contents. The properties specify back color, alpha blending and gradient modes, font settings, horizontal and vertical alignment, etc.

The look and feel settings of the style objects represented by instances of the TdxNavBarStyle class are used both by custom style items (if any) and default styles of the NavBar control. The collection of custom styles can be accessed via the OptionsStyle.CustomStyleRepository property of the NavBar control (the TdxNavBar object). Each custom style item (the TdxNavBarStyleItem object) refers to a specific TdxNavBarStyle object via the Style property. Default styles are specified by the TdxNavBarDefaultStyles object, which is available via the OptionsStyle.DefaultStyles property of the NavBar control. This object contains the properties representing the default types of NavBar elements to which individual styles can be assigned. So each TdxNavBarDefaultStyles object’s property provides access to the corresponding TdxNavBarStyle object containing the required style settings.

See Also