Object Model Reference : Classes : P : Palette : Properties : Palette.Color |
Property Color(Index As Long) As Color
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.
|
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 |
Copyright 2013 Corel Corporation. All rights reserved.