API Reference > OdCm Classes > OdCmColor Class > OdCmColor Methods > OdCmColor::colorIndex Method
OdCmColor::colorIndex Method
Syntax
C++
virtual OdUInt16 colorIndex() const;

Returns the color index (ACI) of the entity color object.

The color index can be one of the following: 

 

Name 
Value 
Description 
kACIbyBlock 
Sets the color method to byBlock. 
kACIRed 
Red. 
kACIYellow 
Yellow. 
kACIGreen 
Green. 
kACICyan 
Cyan. 
kACIBlue 
Blue. 
kACIMagenta 
Magenta. 
kACIforeground 
Sets the color method to Foreground. 
.. 
8-255 
Defined by current palette. 
kACIbyLayer 
256 
Sets the color method to byLayer. 
kACInone 
257 
Sets the color method to None. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.