Object Model Reference : Classes : P : Palette : Methods : Palette.InsertColor |
Sub InsertColor(Index As Long, Color As Color)
Member of Palette
The InsertColor method adds an existing color to a palette at a specified position
Parameter
|
Description
|
Index
|
Specifies the position of the color in the color palette
|
Color
|
Specifies the color to add
|
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 |
Copyright 2013 Corel Corporation. All rights reserved.