MudExColorUtils¶
MudExColorUtils is a static utility class that provides a set of extension methods for working with Color and MudColor instances. These methods include converting between Color and MudColor, creating CSS variable names and declarations, and checking if a MudColor is black or white.
Methods¶
CssVarName (this Color)¶
Returns the CSS variable name for a given Color.
Parameters¶
color: TheColorinstance.
Example¶
CssVarDeclaration (this Color)¶
Returns the CSS variable declaration for a given Color.
Parameters¶
color: TheColorinstance.
Example¶
ToDrawingColor (this MudColor)¶
Converts a MudColor to a System.Drawing.Color.
Parameters¶
color: TheMudColorinstance.
Example¶
ToMudColor (this System.Drawing.Color)¶
Converts a System.Drawing.Color to a MudColor.
Parameters¶
color: TheSystem.Drawing.Colorinstance.
Example¶
ToCssRgba (this MudColor)¶
Converts a MudColor to a CSS RGBA string.
Parameters¶
color: TheMudColorinstance.
Example¶
IsBlack (this MudColor)¶
Checks if a MudColor instance is black.
Parameters¶
color: TheMudColorinstance.
Example¶
IsWhite (this MudColor)¶
Checks if a MudColor instance is white.
Parameters¶
color: TheMudColorinstance.