[]
        
(Showing Draft Content)

C1.Blazor.Core.C1Color

C1Color Class

Represents a color.

Inheritance
C1Color
Implements
Namespace: C1.Blazor.Core
Assembly: C1.Blazor.Core.dll
Syntax
public class C1Color : ICloneable

Properties

Name Description
A

Gets alpha channel.

AliceBlue
AntiqueWhite
Aqua
Aquamarine
Azure
B

Gets the blue component.

Beige
Bisque
Black
BlanchedAlmond
Blue
BlueViolet
Brown
BurlyWood
CadetBlue
Chartreuse
Chocolate
Coral
CornflowerBlue
Cornsilk
Crimson
Cyan
DarkBlue
DarkCyan
DarkGoldenRod
DarkGray
DarkGreen
DarkGrey
DarkKhaki
DarkMagenta
DarkOliveGreen
DarkOrange
DarkOrchid
DarkRed
DarkSalmon
DarkSeaGreen
DarkSlateBlue
DarkSlateGray
DarkSlateGrey
DarkTurquoise
DarkViolet
DeepPink
DeepSkyBlue
DimGray
DimGrey
DodgerBlue
FireBrick
FloralWhite
ForestGreen
Fuchsia
G

Gets the green component.

Gainsboro
GhostWhite
Gold
GoldenRod
Gray
Green
GreenYellow
Grey
HoneyDew
HotPink
IndianRed
Indigo
Ivory
Khaki
Lavender
LavenderBlush
LawnGreen
LemonChiffon
LightBlue
LightCoral
LightCyan
LightGoldenRodYellow
LightGray
LightGreen
LightGrey
LightPink
LightSalmon
LightSeaGreen
LightSkyBlue
LightSlateGray
LightSlateGrey
LightSteelBlue
LightYellow
Lime
LimeGreen
Linen
Magenta
Maroon
MediumAquaMarine
MediumBlue
MediumOrchid
MediumPurple
MediumSeaGreen
MediumSlateBlue
MediumSpringGreen
MediumTurquoise
MediumVioletRed
MidnightBlue
MintCream
MistyRose
Moccasin
NavajoWhite
Navy
OldLace
Olive
OliveDrab
Orange
OrangeRed
Orchid
PaleGoldenRod
PaleGreen
PaleTurquoise
PaleVioletRed
PapayaWhip
PeachPuff
Peru
Pink
Plum
PowderBlue
Purple
R

Gets the red component.

RebeccaPurple
Red
RosyBrown
RoyalBlue
SaddleBrown
Salmon
SandyBrown
SeaGreen
SeaShell
Sienna
Silver
SkyBlue
SlateBlue
SlateGray
SlateGrey
Snow
SpringGreen
SteelBlue
Tan
Teal
Thistle
Tomato
Transparent
Turquoise
Violet
Wheat
White
WhiteSmoke
Yellow
YellowGreen

Methods

Name Description
AreColorsEqual(C1Color, C1Color)

Compares two colors

Clone()
ColorToHTML(C1Color)

Color to html

ColorToString(C1Color)

Color to string

Equals(object)
FromArgb(byte, byte, byte, byte)

Creates a color from the ARGB components.

FromArgb(int)

Creates a color from the ARGB components.

FromArgb(int, out byte, out byte, out byte, out byte)

From Argb

GetHashCode()
IsOpaque(C1Color)

Checks if color is opaque

IsTransparent(C1Color)

Check if color is transparent

IsVisible(C1Color)

Returns a value indicating whether specified Color value represents some "visible" value, for example, this function returns false for transparent color.

Parse(string)

Creates a color from an html string.

ToArgb()

Converts the color into a packed integer.

ToArgb(C1Color)

Convert color to Argb reprensentative

ToArgb(byte, byte, byte, byte)

Convert to single int to represent argb

ToString()
TryColorFromString(string, out C1Color)

Try convert color from string

TryParse(string, out C1Color)

Creates a color from an html string.

Operators

Name Description
operator ==(C1Color, C1Color)

Compares two C1Color structures for equality.

implicit operator C1Color(string)

Casting operator to convert a string into a C1Color.

operator !=(C1Color, C1Color)

Compares two C1Color structures for inequality.