API Documentation > CorelDRAW > 2025-v26 > Document > IVGDocument
Document.CreateColorStyles method
Creates color styles or color harmonies from objects in the document or selection
Syntax:
Function CreateColorStyles(Optional ByVal UseFills As Boolean = True, Optional ByVal UseOutlines As Boolean = True, Optional ByVal SelectedOnly As Boolean = False, Optional ByVal NumberOfColorHarmonies As Long = 0, Optional ByVal ConvertColorsTo As cdrColorType = cdrColorMixed) As Long
Parameters:
Name Type Description
UseFills
Boolean
UseOutlines
Boolean
SelectedOnly
Boolean
NumberOfColorHarmonies
Long
ConvertColorsTo
Remarks:
The CreateColorStyles method creates color styles or color harmonies from objects in the document or the selection.