Returns an instance of the ColorEntry object, corresponding to a color from the color palette of the document, by its index in the color collection.
Applies to: Document object
[[Set] colorEntryRet =] object.ColorEntry ( index ) |
The ColorEntry method syntax has these parts:
Part | Description |
object | Required. An expression that returns an instance of the Document object. |
index | Required. An expression that returns a Long value. The index of the color in the color palette. |
colorEntryRet | Optional. A ColorEntry type variable. |
If index is less than 1 or greater than the number of colors in the color palette of the document, the ColorEntry method returns Nothing. To find out the number of the colors in the color palette of the document, use the ColorsNum method.
See Also |
ColorsNum method, ColorEntry object |