API Documentation > CorelDRAW > 2025-v26
Palettes class
Represents a collection of all open color palettes (or Palette objects)
Syntax:
Class Palettes
Remarks:
The Palettes class represents a collection of all open color palettes (or Palette objects).
Properties:
Name Description
_NewEnum Returns an enumerator that iterates through a collection
Application Gets the application to which the palette collection belongs
Count Gets the number of palettes currently open in the application
Item Gets a reference to a specified palette, in base 1
Parent Gets the parent of which the palette collection is a child
Methods:
Name Description
Create Creates a new color palette
CreateFromDocument Creates a color palette from document
CreateFromSelection Creates a color palette from selected shapes
Open Opens a palette from file