cancel
Showing results for 
Search instead for 
Did you mean: 

Each time I try to access the "color" property of ITxDisplayObject, I get an exception ...

Siemens Pioneer Siemens Pioneer
Siemens Pioneer

Question:  

 

Each time I try to access the "Color" property of ITXDisplayObject, I get an exception that it isn't accessible.

 

Answer:

 

The Color property of ITXDisplayableObject returns a valid color only if the component has a uniform color and that color is explicitly defined. 

 

You can use the getColors() method instead- it returns all the colors of the object.