Previous Document Next Document

Object Model Reference : Classes : P : Palette : Methods : Palette.InsertColor


Palette.InsertColor

Sub InsertColor(Index As Long, Color As Color)

Description

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

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.