Skip to main content
A newer version of this page is available. .

TcxStyles Class

Represents an abstract collection of styles which control the appearance of specific control elements.

Declaration

TcxStyles = class(
    TcxCustomStyles,
    IcxFontListener
)

Remarks

The TcxStyles class represents an abstract collection of styles for different control elements. It doesn’t introduce any new style properties, but instead provides the ability to access styles by their indexes. Each style is of the TcxStyle class and declares general style attributes, such as the background color, font details and text color.

Descendants of the TcxStyles class declare appropriate styles for different control elements depending upon the control’s type.

Since TcxStyles is inherited from the TcxCustomStyles class it receives notifications about style attribute changes via its StyleChanged and StyleRemoved methods. TcxStyles adds itself as a listener to all its TcxStyle elements and receives notification when any of the TcxStyle attributes are changed and the corresponding control elements are then repainted as a result.

Implements

See Also