We are using 24.6 version of aspose cells and the method com.aspose.cells.Color.a() it accepts String (color) value for ex “#151921” but now we are moving to latest aspose cells version 25.6 and found that com.aspose.cells.Color.a() is not anymore accepting String value as an input instead it requires a4.
What will be an alternative in latest version to achieve this usecase?
The method is public in 25.6: com.aspose.cells.Color.fromName(String name). The param name should be a color name, e.g. “Blue”. Your specified name “#151921” will return a color with intArgb 0.
How can I use the “#151921” hex value as an input to aspose method to set the color to an element?
I don’t have name e.g “Blue” information to set the color. I need a method that accepts HEX value.
I tried with com.aspose.cells.Color.fromName(“#151921”) but it does not return color with intArgb 0 instead it returned “Empty color”.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.