Previous Document Next Document

Object Model Reference : Classes : A : Application : Properties : Application.Palettes


Application.Palettes

Property Palettes As Palettes

Description

Member of Application

The Palettes property returns the collection of open color palettes.

The Palettes property returns a read-only value.

VBA example

The following VBA example displays the name of all palettes in use, and the number of colors in each palette, in a message box.

Sub PalettesList()
 Dim pal As Palette
 Dim s As String
 s = "Active palettes. "
 For Each pal In Palettes
  s = s & pal.Name & " (" & pal.ColorCount & " colors)"
 Next pal
 MsgBox s
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.