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

TcxCustomStyles.Assign(TPersistent) Method

Copies one set of styles to another.

Declaration

procedure Assign(Source: TPersistent); override;

Parameters

Name Type
Source TPersistent

Remarks

The Assign method copies the set of styles and style event handlers contained in the Source parameter to the current set of styles.

Descendants of the TcxCustomStyles class override this method to copy styles specific to them. For instance, TcxGridBandStyles assigns its Background, Content, Header style properties and the OnGetHeaderStyle event handler.

Use the Assign method when you need to copy styles provided by some style collection to the current one. This results in applying the same styles to different controls.

See Also