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

TcxCustomStyles Class

Represents 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. Descendants of the TcxCustomStyles class declare appropriate styles for different control elements depending upon the control’s type. The style of each control element is represented by an object of the TcxCustomStyle class. The style of every element is represented by an instance of the TcxCustomStyles or TcxStyle class. It’s possible to assign the same styles to several elements and even to different TcxCustomStyles objects.

TcxCustomStyles provides the StyleChanged and StyleRemoved methods which are used to respond to style changes and adds itself as a listener of its TcxCustomStyle elements. When any of the TcxCustomStyle attributes are changed, TcxCustomStyles receives a notification and updates the corresponding control elements.

The StyleSheet property specifies the style sheet applied to the current collection of style links. A style sheet represents a collection of styles for the elements of controls supporting Styles technology (for instance, a grid view). Instead of specifying individual styles for each control element, you can assign it a style sheet, thus providing values for all style properties.

See Also