![]() |
![]() |
Palette.DuplicatePresent
Property DuplicatePresent As Boolean
Member of Palette
The DuplicatePresent property determines whether a color is repeated in a color palette. If the value returned is True, there are any duplicate colors in the palette.
The DuplicatePresent property returns a read-only value.
The following code example displays a message if there are any duplicate colors in the default palette:
Sub Test() If ActivePalette.DuplicatePresent Then MsgBox "Default palette contains duplicate colors" End If End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.