Skip to main content

ApiColor

Represents the ApiColor class.

Methods

MethodReturnsDescription
FromJSONApiColor | nullConverts the JSON object into the ApiColor object.
GetClassType"color"Returns a type of the ApiColor class.
GetHexstringGets the HEX string representation of the color.
GetRGBObjectGets the RGB components of the color.
GetRGBAObjectGets the RGBA components of the color.
GetThemeNameSchemeColorId | nullGets the theme color name if the color is a theme color.
IsThemeColorbooleanReturns true if the color is a theme color.
ToJSONstringConverts the ApiColor object into the JSON object.