API Documentation > CorelDRAW > 2025-v26 > Palette > IVGPalette
Palette.InsertColor method
Inserts a color into a custom color palette
Syntax:
Sub InsertColor(ByVal Index As Long, ByVal Color As Color)
Parameters:
Name Type Description
Index
Long
Color
Remarks:
The InsertColor method adds an existing color to a palette at a specified position
Examples:
The following VBA example adds the registration color to the beginning of the default palette.
Sub Test()
Dim c As New Color
c.RegistrationAssign
ActivePalette.InsertColor 1, c 
End Sub