Back to Devexpress

TcxCustomStyle Class

vcl-cxstyles-466d8b0c.md

latest1.6 KB
Original Source

TcxCustomStyle Class

Represents a base class for styles which notify listeners about attribute changes.

Declaration

delphi
TcxCustomStyle = class(
    TComponent
)

Remarks

The TcxCustomStyle class implements the functionality required by listeners to notify them about changes to style attribute using their StyleChanged and StyleRemoved methods. The TcxStyle class is a descendant of the TcxCustomStyle class which introduces style attributes that are shared by all components, namely the background color, font details and text color. When any of the style attributes are changed, all listeners are notified.

TcxCustomStyles supports an abstract collection of styles, each of which is presented by the TcxCustomStyle class. Descendants of the TcxCustomStyles class declare appropriate styles for different control elements depending upon the control’s type. TcxCustomStyles receives notifications about style attribute changes via its StyleChanged and StyleRemoved methods. When such notifications are received, the corresponding control elements are repainted.

Inheritance

TObject TPersistent TComponent TcxCustomStyle

See Also

TcxCustomStyles

TcxCustomStyle Members

cxStyles Unit