TdxNavBarStyleItem Class
Represents a custom style within a NavBar control.
Declaration
TdxNavBarStyleItem = class(
TdxNavBarComponentCollectionItem
)
Remarks
The TdxNavBarStyleItem object represents an individual custom style, which can be used by different objects of the NavBar control (group, item, NavBar control itself) containing style properties.
Each TdxNavBarStyleItem object is an item of the custom styles collection represented by the OptionsStyle.CustomStyleRepository property of the NavBar control. You can add/delete individual custom styles via the Custom Styles designer or by using the methods and properties of the OptionsStyle.CustomStyleRepository collection via code at runtime.
The custom style items represented by the TdxNavBarStyleItem objects are available to specific visual elements of the NavBar control, its groups and items. Thus, the TdxNavBar, TdxNavBarGroup and TdxNavBarItem objects contain different sets of style properties representing the look and feel of particular visual elements. These properties are of the TdxNavBarStyleItem type, so each of them can be set to the appropriate style created and maintained by the OptionsStyle.CustomStyleRepository collection of the NavBar control.
The TdxNavBarStyleItem object contains the Style property referring to the adjusted style settings represented by the TdxNavBarStyle object.
Note
Call the NavBar control’s OptionsStyle.CustomStyleRepository.Add function to create a style. Alternatively, you can call the TdxNavBarStyleItem class’s constructor to create a style and call its AddToCollection procedure to add this style to the NavBar control’s OptionsStyle.CustomStyleRepository collection.