API Reference > OdCm Classes > OdCmColor Class > OdCmColor Methods > OdCmColor::colorMethod Method
OdCmColor::colorMethod Method
Syntax
C++
virtual OdCmEntityColor::ColorMethod colorMethod() const;

Returns the color method of this color.

The color method can be one of the following: 

 

Name 
Value 
Description 
kByLayer 
0xC0 
Color is specified by the layer object on which the object resides. 
kByBlock 
0xC1 
Color is specified by the block reference color. 
kByColor 
0xC2 
Color is specified by an RGB value. 
kByACI 
0xC3 
Color is specified by an index (ACI) of a color palette. 
kByPen 
0xC4 
Color is specified by an index of a pen color table. 
kForeground 
0xC5 
Color is the same as the foreground color. 
kByDgnIndex 
0xC7 
Color is specified by an index of a .dgn color table. 
kNone 
0xC8 
Color is absent (object is clear). 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.