TcxCustomControlStyles Class
Implements the common functionality and properties for editing control styles.
Declaration
TcxCustomControlStyles = class(
TcxStyles
)
Remarks
An editing control (a TcxEditingControl descendant) can consist of many elements. In this case, every control’s visual element has its own style. Styles are used to modify the editing control’s appearance. An element style consists of background color or background image, text color and text font. Of course, not every visual element contains text. So text color and font properties are useless for this element.
The TcxCustomControlStyles class inherits the Values property that allows you to access all styles within the style collection by the zero-based index. In addition, TcxCustomControlStyles provides a more comprehensive way to access styles. Each style within the collection is represented by the corresponding property. The control’s background style is represented by the Background property, the control’s content style is represented by the Content property, etc.
TcxCustomControlStyles descendants (TcxVerticalGridStyles and TcxTreeListStyles) are exposed in various editing controls via their Styles property.
You shouldn’t create instances of the TcxCustomControlStyles class or its descendants – they are created automatically by editing controls. You can inherit from the TcxCustomControlStyles class to create a style collection for your own controls.