TcxCustomStyles Class
A collection of style links for various component elements.
Declaration
TcxCustomStyles = class(
TcxInterfacedPersistent,
IcxStyleChangeListener
)
Remarks
The TcxCustomStyles
class supports an abstract collection of style links for various component elements. TcxCustomStyles
class descendants declare appropriate styles for different control elements depending upon the control’s type. The style of each control element is a TcxCustomStyle class instance. The style of every element is a TcxCustomStyles
or TcxStyle class instance. You can assign the same styles to multiple elements and even to different TcxCustomStyles
objects.
The TcxCustomStyles
class implements StyleChanged and StyleRemoved methods which are used to respond to style changes and adds itself as a listener of its TcxCustomStyle elements. When any TcxCustomStyle attribute changes, the TcxCustomStyles
object receives a notification and updates corresponding control elements.
The StyleSheet property specifies the style sheet applied to the current collection of style links. A style sheet is a collection of styles for control elements that support Styles (for instance, a grid View).