Gets or sets an Integer value, which is an index representation of a color.
Applies to objects: Color
[Let] RetVal = object.Index [Let] object.Index = SetVal |
The Index property syntax has these parts:
Part | Description |
object | A reference to an instance of the object. |
RetVal | An Integer value within the 0 - 255 range. |
SetVal | An Integer value within the 0 - 255 range. |
Prior to using the Index property it's recommended that you call the IsIndex property.
This example demonstrates how to find out the fill color index of the Shape object.
dim s as shape ' Create a Shape object |
See Also |
Color Object, IsIndex Property |