API Reference > OdCm Classes > OdCmColor Class > OdCmColor Methods > OdCmColor::setNames Method
OdCmColor::setNames Method
Syntax
C++
virtual bool setNames(const OdString& colorName, const OdString& bookName = OdString::kEmpty);
Parameters 
Description 
const OdString& colorName 
[in] Name of the color to be set.  
const OdString& bookName = OdString::kEmpty 
[in] Name of the book to be set. 

true if the operation is complete. If colorName is empty, but bookName isn't - returns false. If colorName and bookName are empty - returns true.

Sets the color name and the book name. 

 

If colorName is empty, then current bookName will be emptied, and the new one will not be assigned.

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