Previous Document Next Document

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


Palette.Color

Property Color(Index As Long) As Color

Description

Member of Palette

The Color property returns a specified color from a palette.

 
This property is similar to using the Colors collection, but it works faster when you need to access only a single color from the palette.

Parameter
Description
Index
Specifies the color from the palette by using its index number

VBA example

The following VBA example creates an ellipse and fills it with the 15th color of the default color palette.

Sub Test()
 Dim s As Shape
 Set s = ActiveLayer.CreateEllipse2(2, 2, 1)
 s.Fill.ApplyUniformFill ActivePalette.Color(15)
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.