to_known_color method

to_known_color

Gets the KnownColor value of this Color structure.

Returns

An element of the KnownColor enumeration, if the Color is created from a predefined color by using either the Color.from_name method or the Color.from_known_color method; otherwise, 0.

def to_known_color(self):
    ...

See Also