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

true if the color method of this color is set to "kForeground", or if it is set to "kByACI" and ACI color method is "kACIforeground", false - otherwise.

Checks if the color is the same as the foreground color (color method of this color is set to "kForeground", or it is set to "kByACI" and ACI color method is "kACIforeground").

Copyright © 2002–2020. Open Design Alliance. All rights reserved.