Represents a color palette
Syntax:
Class Palette
Remarks:
The Palette class represents a color palette.
Properties:
Name Description
Application Gets the application to which the object belongs
Color Gets or sets a color object based on index
ColorCount Gets the number of colors in a color palette
Default Returns True if this is the application-default palette
Document Returns the document for a document-specific palette
DuplicatePresent Advises if a color is repeated in a color palette
FileName Gets the filename of the palette
Identifier Returns a unique identifier of the palette
IsEmpty Returns True if this palette is empty
IsOpen Returns True if this palette is currently visible on the screen
Locked Returns True if this palette is not editable
Name Gets or sets the color palette name; palette name can only be set if it is a custom palette
Parent Gets the parent of which this object is a child
Type Gets whether or not a color palette is custom or fixed
Methods:
Name Description
AddColor Adds a color to a custom color palette
Close Closes the color palette
Colors Gets a collection of colors in a palette
Delete Deletes the palette along with the associated palette file
FindColor Finds the color by name
GetIndexOfColor Gets the index of a color object
InsertColor Inserts a color into a custom color palette
MakeDefault Makes this palette the default palette for the application
MatchColor Finds the closest match for the color from the given palette
Open Opens the palette on screen
RemoveColor Removes a color from a custom color palette
Save Saves the palette
SaveAs Saves the palette to as new file