C++
int dictionaryKeyLength() const;
Description
The AcCmColor objects that have color names can be stored in a dictionary in the form of an AcDbColor. Access to the dictionary is controlled by a key made up of name information from a color. The key information can be obtained from an AcCmColor without needing to first create a more heavyweight AcDbColor. This is particularly useful when querying the dictionary to see if an equivalent AcDbColor is already in the dictionary. The AcCmColor must have at least a colorName, but the bookName is optional. This method returns the length of the key string. If a key cannot be made (for example, if there is no colorName), then the length is 0.