Previous Document Next Document

Object Model Reference : Classes : P : Palette : Properties : Palette.DuplicatePresent


Palette.DuplicatePresent

Property DuplicatePresent As Boolean

Description

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.

VBA example

The following VBA 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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.