API Documentation > CorelDRAW > 2025-v26
StyleSheet class
StyleSheet class
Syntax:
Class StyleSheet
Remarks:
The StyleSheet class represents the styles and style sets included in a style sheet.
Properties:
Name Description
AllColorStyles Retrieves all color styles
AllStyles Returns a list of all the styles in the style sheet
AllStyleSets Returns a list of all the style sets in the style sheet
ObjectDefaults Returns the object default style sets
Styles Returns top-level styles defined in style sheet
StyleSets Returns top-level style sets defined in style sheet
Methods:
Name Description
CreateColorStyle Creates a new color style
CreateStyle Creates a new style
CreateStyleFromShape Creates styles from a shape
CreateStyleFromShapeRange Creates styles from a shape range
CreateStyleFromTextRange Creates styles from a text range
CreateStyleSet Creates a new style set
CreateStyleSetFromShape Creates style sets from a shape
CreateStyleSetFromShapeRange Creates style sets from a shape range
CreateStyleSetFromTextRange Creates style sets from a text range
DeleteAllColorStyles Removes all color styles from the style sheet
DeleteColorStyle Removes a single color styles from the style sheet
Export Exports styles from the style sheet
FindStyle Finds a style by name
Import Imports styles into the style sheet
RenameColorStyle Renames a color style