[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rendering.Tools.ColorExtension

ColorExtension Class

Provides extension methods for working with colors in the context of HTML color names and color manipulation.

Inheritance
ColorExtension
Namespace: GrapeCity.ActiveReports.Rendering.Tools
Assembly: MESCIUS.ActiveReports.Core.Rendering.dll
Syntax
public static class ColorExtension

Methods

Name Description
ApplyTransparency(Color, double)

Adjusts the color with the provided transparency.

IsKnownColor(Color)

Determines whether the color is a known color.

IsTransparent(Color)

Determines whether the color is fully transparent.

ToColor(string)

Converts an HTML color name to a Color object.

ToColor(string, Color)

Converts an HTML color name to a Color object, or returns a default color if the name is null or empty.

ToHtml(Color)

Converts a given color to a string that can be used in HTML code.

ToRgbString(Color)

Converts a given color to a hexadecimal string representation.