Skip to main content

TcxCustomStyleSheet.SetStyles(TcxCustomStyles) Method

Sets the styles collection for the style sheet.

Declaration

procedure SetStyles(const Value: TcxCustomStyles);

Parameters

Name Type
Value TcxCustomStyles

Remarks

The SetStyles method sets the style collection provided via the Value parameter. This allows you to set all style properties at once. For instance, if you want to create a style sheet specifying the same styles as a style collection, use the SetStyles method and pass the style collection to it as a parameter. Then you can save the style sheet to an INI file using the SaveStyleSheetsToIniFile procedure to save it for future use.

To get the styles collection, use the GetStyles method.

See Also