TcxCustomStyleSheet.GetStyles Method
Returns the collection of styles contained in the style sheet.
Declaration
function GetStyles: TcxCustomStyles;
Returns
Type |
---|
TcxCustomStyles |
Remarks
The GetStyles method returns the collection of styles contained in the style sheet. The returned styles are specific for the control. To obtain the styles class, use the GetStylesClass method.
To set the styles collection for the style sheet, use the SetStyles method. 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 via the SaveStyleSheetsToIniFile procedure to save it for future use.
See Also