Show / Hide Table of Contents

Class DrawingColor

A Color that is used for Shapes, Charts and other drawing objects.

Inheritance
System.Object
DrawingColor
Namespace: DRIT.Spreadsheet.Drawing
Assembly: DRIT.Spreadsheet.dll
Syntax
public class DrawingColor : object

Constructors

DrawingColor(Byte, Byte, Byte)

Declaration
public DrawingColor(byte r, byte g, byte b)
Parameters
Type Name Description
System.Byte r
System.Byte g
System.Byte b

DrawingColor(Color)

Declaration
public DrawingColor(Color color)
Parameters
Type Name Description
System.Drawing.Color color

DrawingColor(Single, Single, Single)

Declaration
public DrawingColor(float r, float g, float b)
Parameters
Type Name Description
System.Single r
System.Single g
System.Single b

DrawingColor(String)

Declaration
public DrawingColor(string hexColor)
Parameters
Type Name Description
System.String hexColor

Properties

A

Declaration
public byte A { get; }
Property Value
Type Description
System.Byte

Accent1

Declaration
public static DrawingColor Accent1 { get; }
Property Value
Type Description
DrawingColor

Accent2

Declaration
public static DrawingColor Accent2 { get; }
Property Value
Type Description
DrawingColor

Accent3

Declaration
public static DrawingColor Accent3 { get; }
Property Value
Type Description
DrawingColor

Accent4

Declaration
public static DrawingColor Accent4 { get; }
Property Value
Type Description
DrawingColor

Accent5

Declaration
public static DrawingColor Accent5 { get; }
Property Value
Type Description
DrawingColor

Accent6

Declaration
public static DrawingColor Accent6 { get; }
Property Value
Type Description
DrawingColor

ActiveBorder

Declaration
public static DrawingColor ActiveBorder { get; }
Property Value
Type Description
DrawingColor

ActiveCaption

Declaration
public static DrawingColor ActiveCaption { get; }
Property Value
Type Description
DrawingColor

AliceBlue

Declaration
public static DrawingColor AliceBlue { get; }
Property Value
Type Description
DrawingColor

AntiqueWhite

Declaration
public static DrawingColor AntiqueWhite { get; }
Property Value
Type Description
DrawingColor

AppWorkspace

Declaration
public static DrawingColor AppWorkspace { get; }
Property Value
Type Description
DrawingColor

Aqua

Declaration
public static DrawingColor Aqua { get; }
Property Value
Type Description
DrawingColor

Aquamarine

Declaration
public static DrawingColor Aquamarine { get; }
Property Value
Type Description
DrawingColor

Azure

Declaration
public static DrawingColor Azure { get; }
Property Value
Type Description
DrawingColor

B

Declaration
public byte B { get; }
Property Value
Type Description
System.Byte

Background

Declaration
public static DrawingColor Background { get; }
Property Value
Type Description
DrawingColor

Background1

Declaration
public static DrawingColor Background1 { get; }
Property Value
Type Description
DrawingColor

Background2

Declaration
public static DrawingColor Background2 { get; }
Property Value
Type Description
DrawingColor

Beige

Declaration
public static DrawingColor Beige { get; }
Property Value
Type Description
DrawingColor

Bisque

Declaration
public static DrawingColor Bisque { get; }
Property Value
Type Description
DrawingColor

Black

Declaration
public static DrawingColor Black { get; }
Property Value
Type Description
DrawingColor

BlanchedAlmond

Declaration
public static DrawingColor BlanchedAlmond { get; }
Property Value
Type Description
DrawingColor

Blue

Declaration
public static DrawingColor Blue { get; }
Property Value
Type Description
DrawingColor

BlueViolet

Declaration
public static DrawingColor BlueViolet { get; }
Property Value
Type Description
DrawingColor

Brown

Declaration
public static DrawingColor Brown { get; }
Property Value
Type Description
DrawingColor

BurlyWood

Declaration
public static DrawingColor BurlyWood { get; }
Property Value
Type Description
DrawingColor

ButtonFace

Declaration
public static DrawingColor ButtonFace { get; }
Property Value
Type Description
DrawingColor

ButtonHighlight

Declaration
public static DrawingColor ButtonHighlight { get; }
Property Value
Type Description
DrawingColor

ButtonShadow

Declaration
public static DrawingColor ButtonShadow { get; }
Property Value
Type Description
DrawingColor

ButtonText

Declaration
public static DrawingColor ButtonText { get; }
Property Value
Type Description
DrawingColor

CadetBlue

Declaration
public static DrawingColor CadetBlue { get; }
Property Value
Type Description
DrawingColor

CaptionText

Declaration
public static DrawingColor CaptionText { get; }
Property Value
Type Description
DrawingColor

Chartreuse

Declaration
public static DrawingColor Chartreuse { get; }
Property Value
Type Description
DrawingColor

Chocolate

Declaration
public static DrawingColor Chocolate { get; }
Property Value
Type Description
DrawingColor

Coral

Declaration
public static DrawingColor Coral { get; }
Property Value
Type Description
DrawingColor

CornflowerBlue

Declaration
public static DrawingColor CornflowerBlue { get; }
Property Value
Type Description
DrawingColor

Cornsilk

Declaration
public static DrawingColor Cornsilk { get; }
Property Value
Type Description
DrawingColor

Crimson

Declaration
public static DrawingColor Crimson { get; }
Property Value
Type Description
DrawingColor

Cyan

Declaration
public static DrawingColor Cyan { get; }
Property Value
Type Description
DrawingColor

Dark1

Declaration
public static DrawingColor Dark1 { get; }
Property Value
Type Description
DrawingColor

Dark2

Declaration
public static DrawingColor Dark2 { get; }
Property Value
Type Description
DrawingColor

DarkBlue

Declaration
public static DrawingColor DarkBlue { get; }
Property Value
Type Description
DrawingColor

DarkCyan

Declaration
public static DrawingColor DarkCyan { get; }
Property Value
Type Description
DrawingColor

DarkGoldenrod

Declaration
public static DrawingColor DarkGoldenrod { get; }
Property Value
Type Description
DrawingColor

DarkGray

Declaration
public static DrawingColor DarkGray { get; }
Property Value
Type Description
DrawingColor

DarkGreen

Declaration
public static DrawingColor DarkGreen { get; }
Property Value
Type Description
DrawingColor

DarkKhaki

Declaration
public static DrawingColor DarkKhaki { get; }
Property Value
Type Description
DrawingColor

DarkMagenta

Declaration
public static DrawingColor DarkMagenta { get; }
Property Value
Type Description
DrawingColor

DarkOliveGreen

Declaration
public static DrawingColor DarkOliveGreen { get; }
Property Value
Type Description
DrawingColor

DarkOrange

Declaration
public static DrawingColor DarkOrange { get; }
Property Value
Type Description
DrawingColor

DarkOrchid

Declaration
public static DrawingColor DarkOrchid { get; }
Property Value
Type Description
DrawingColor

DarkRed

Declaration
public static DrawingColor DarkRed { get; }
Property Value
Type Description
DrawingColor

DarkSalmon

Declaration
public static DrawingColor DarkSalmon { get; }
Property Value
Type Description
DrawingColor

DarkSeaGreen

Declaration
public static DrawingColor DarkSeaGreen { get; }
Property Value
Type Description
DrawingColor

DarkShadow3D

Declaration
public static DrawingColor DarkShadow3D { get; }
Property Value
Type Description
DrawingColor

DarkSlateBlue

Declaration
public static DrawingColor DarkSlateBlue { get; }
Property Value
Type Description
DrawingColor

DarkSlateGray

Declaration
public static DrawingColor DarkSlateGray { get; }
Property Value
Type Description
DrawingColor

DarkTurquoise

Declaration
public static DrawingColor DarkTurquoise { get; }
Property Value
Type Description
DrawingColor

DarkViolet

Declaration
public static DrawingColor DarkViolet { get; }
Property Value
Type Description
DrawingColor

DeepPink

Declaration
public static DrawingColor DeepPink { get; }
Property Value
Type Description
DrawingColor

DeepSkyBlue

Declaration
public static DrawingColor DeepSkyBlue { get; }
Property Value
Type Description
DrawingColor

DimGray

Declaration
public static DrawingColor DimGray { get; }
Property Value
Type Description
DrawingColor

DodgerBlue

Declaration
public static DrawingColor DodgerBlue { get; }
Property Value
Type Description
DrawingColor

Firebrick

Declaration
public static DrawingColor Firebrick { get; }
Property Value
Type Description
DrawingColor

FloralWhite

Declaration
public static DrawingColor FloralWhite { get; }
Property Value
Type Description
DrawingColor

FollowedHyperlink

Declaration
public static DrawingColor FollowedHyperlink { get; }
Property Value
Type Description
DrawingColor

ForestGreen

Declaration
public static DrawingColor ForestGreen { get; }
Property Value
Type Description
DrawingColor

Fuchsia

Declaration
public static DrawingColor Fuchsia { get; }
Property Value
Type Description
DrawingColor

G

Declaration
public byte G { get; }
Property Value
Type Description
System.Byte

Gainsboro

Declaration
public static DrawingColor Gainsboro { get; }
Property Value
Type Description
DrawingColor

GhostWhite

Declaration
public static DrawingColor GhostWhite { get; }
Property Value
Type Description
DrawingColor

Gold

Declaration
public static DrawingColor Gold { get; }
Property Value
Type Description
DrawingColor

Goldenrod

Declaration
public static DrawingColor Goldenrod { get; }
Property Value
Type Description
DrawingColor

GradientActiveCaption

Declaration
public static DrawingColor GradientActiveCaption { get; }
Property Value
Type Description
DrawingColor

GradientInactiveCaption

Declaration
public static DrawingColor GradientInactiveCaption { get; }
Property Value
Type Description
DrawingColor

Gray

Declaration
public static DrawingColor Gray { get; }
Property Value
Type Description
DrawingColor

GrayText

Declaration
public static DrawingColor GrayText { get; }
Property Value
Type Description
DrawingColor

Green

Declaration
public static DrawingColor Green { get; }
Property Value
Type Description
DrawingColor

GreenYellow

Declaration
public static DrawingColor GreenYellow { get; }
Property Value
Type Description
DrawingColor

H

Declaration
public double H { get; }
Property Value
Type Description
System.Double

HexColor

Declaration
public string HexColor { get; }
Property Value
Type Description
System.String

Highlight

Declaration
public static DrawingColor Highlight { get; }
Property Value
Type Description
DrawingColor

HighlightText

Declaration
public static DrawingColor HighlightText { get; }
Property Value
Type Description
DrawingColor

Honeydew

Declaration
public static DrawingColor Honeydew { get; }
Property Value
Type Description
DrawingColor

HotLight

Declaration
public static DrawingColor HotLight { get; }
Property Value
Type Description
DrawingColor

HotPink

Declaration
public static DrawingColor HotPink { get; }
Property Value
Type Description
DrawingColor

Hyperlink

Declaration
public static DrawingColor Hyperlink { get; }
Property Value
Type Description
DrawingColor

InactiveBorder

Declaration
public static DrawingColor InactiveBorder { get; }
Property Value
Type Description
DrawingColor

InactiveCaption

Declaration
public static DrawingColor InactiveCaption { get; }
Property Value
Type Description
DrawingColor

InactiveCaptionText

Declaration
public static DrawingColor InactiveCaptionText { get; }
Property Value
Type Description
DrawingColor

IndianRed

Declaration
public static DrawingColor IndianRed { get; }
Property Value
Type Description
DrawingColor

Indigo

Declaration
public static DrawingColor Indigo { get; }
Property Value
Type Description
DrawingColor

InfoBk

Declaration
public static DrawingColor InfoBk { get; }
Property Value
Type Description
DrawingColor

InfoText

Declaration
public static DrawingColor InfoText { get; }
Property Value
Type Description
DrawingColor

Ivory

Declaration
public static DrawingColor Ivory { get; }
Property Value
Type Description
DrawingColor

Khaki

Declaration
public static DrawingColor Khaki { get; }
Property Value
Type Description
DrawingColor

L

Declaration
public double L { get; }
Property Value
Type Description
System.Double

Lavender

Declaration
public static DrawingColor Lavender { get; }
Property Value
Type Description
DrawingColor

LavenderBlush

Declaration
public static DrawingColor LavenderBlush { get; }
Property Value
Type Description
DrawingColor

LawnGreen

Declaration
public static DrawingColor LawnGreen { get; }
Property Value
Type Description
DrawingColor

LemonChiffon

Declaration
public static DrawingColor LemonChiffon { get; }
Property Value
Type Description
DrawingColor

Light1

Declaration
public static DrawingColor Light1 { get; }
Property Value
Type Description
DrawingColor

Light2

Declaration
public static DrawingColor Light2 { get; }
Property Value
Type Description
DrawingColor

Light3D

Declaration
public static DrawingColor Light3D { get; }
Property Value
Type Description
DrawingColor

LightBlue

Declaration
public static DrawingColor LightBlue { get; }
Property Value
Type Description
DrawingColor

LightCoral

Declaration
public static DrawingColor LightCoral { get; }
Property Value
Type Description
DrawingColor

LightCyan

Declaration
public static DrawingColor LightCyan { get; }
Property Value
Type Description
DrawingColor

LightGoldenrodYellow

Declaration
public static DrawingColor LightGoldenrodYellow { get; }
Property Value
Type Description
DrawingColor

LightGray

Declaration
public static DrawingColor LightGray { get; }
Property Value
Type Description
DrawingColor

LightGreen

Declaration
public static DrawingColor LightGreen { get; }
Property Value
Type Description
DrawingColor

LightPink

Declaration
public static DrawingColor LightPink { get; }
Property Value
Type Description
DrawingColor

LightSalmon

Declaration
public static DrawingColor LightSalmon { get; }
Property Value
Type Description
DrawingColor

LightSeaGreen

Declaration
public static DrawingColor LightSeaGreen { get; }
Property Value
Type Description
DrawingColor

LightSkyBlue

Declaration
public static DrawingColor LightSkyBlue { get; }
Property Value
Type Description
DrawingColor

LightSlateGray

Declaration
public static DrawingColor LightSlateGray { get; }
Property Value
Type Description
DrawingColor

LightSteelBlue

Declaration
public static DrawingColor LightSteelBlue { get; }
Property Value
Type Description
DrawingColor

LightYellow

Declaration
public static DrawingColor LightYellow { get; }
Property Value
Type Description
DrawingColor

Lime

Declaration
public static DrawingColor Lime { get; }
Property Value
Type Description
DrawingColor

LimeGreen

Declaration
public static DrawingColor LimeGreen { get; }
Property Value
Type Description
DrawingColor

Linen

Declaration
public static DrawingColor Linen { get; }
Property Value
Type Description
DrawingColor

Magenta

Declaration
public static DrawingColor Magenta { get; }
Property Value
Type Description
DrawingColor

Maroon

Declaration
public static DrawingColor Maroon { get; }
Property Value
Type Description
DrawingColor

MediumAquamarine

Declaration
public static DrawingColor MediumAquamarine { get; }
Property Value
Type Description
DrawingColor

MediumBlue

Declaration
public static DrawingColor MediumBlue { get; }
Property Value
Type Description
DrawingColor

MediumOrchid

Declaration
public static DrawingColor MediumOrchid { get; }
Property Value
Type Description
DrawingColor

MediumPurple

Declaration
public static DrawingColor MediumPurple { get; }
Property Value
Type Description
DrawingColor

MediumSeaGreen

Declaration
public static DrawingColor MediumSeaGreen { get; }
Property Value
Type Description
DrawingColor

MediumSlateBlue

Declaration
public static DrawingColor MediumSlateBlue { get; }
Property Value
Type Description
DrawingColor

MediumSpringGreen

Declaration
public static DrawingColor MediumSpringGreen { get; }
Property Value
Type Description
DrawingColor

MediumTurquoise

Declaration
public static DrawingColor MediumTurquoise { get; }
Property Value
Type Description
DrawingColor

MediumVioletRed

Declaration
public static DrawingColor MediumVioletRed { get; }
Property Value
Type Description
DrawingColor

Menu

Declaration
public static DrawingColor Menu { get; }
Property Value
Type Description
DrawingColor

MenuBar

Declaration
public static DrawingColor MenuBar { get; }
Property Value
Type Description
DrawingColor

MenuHighlight

Declaration
public static DrawingColor MenuHighlight { get; }
Property Value
Type Description
DrawingColor

MenuText

Declaration
public static DrawingColor MenuText { get; }
Property Value
Type Description
DrawingColor

MidnightBlue

Declaration
public static DrawingColor MidnightBlue { get; }
Property Value
Type Description
DrawingColor

MintCream

Declaration
public static DrawingColor MintCream { get; }
Property Value
Type Description
DrawingColor

MistyRose

Declaration
public static DrawingColor MistyRose { get; }
Property Value
Type Description
DrawingColor

Moccasin

Declaration
public static DrawingColor Moccasin { get; }
Property Value
Type Description
DrawingColor

NavajoWhite

Declaration
public static DrawingColor NavajoWhite { get; }
Property Value
Type Description
DrawingColor

Navy

Declaration
public static DrawingColor Navy { get; }
Property Value
Type Description
DrawingColor

OldLace

Declaration
public static DrawingColor OldLace { get; }
Property Value
Type Description
DrawingColor

Olive

Declaration
public static DrawingColor Olive { get; }
Property Value
Type Description
DrawingColor

OliveDrab

Declaration
public static DrawingColor OliveDrab { get; }
Property Value
Type Description
DrawingColor

Orange

Declaration
public static DrawingColor Orange { get; }
Property Value
Type Description
DrawingColor

OrangeRed

Declaration
public static DrawingColor OrangeRed { get; }
Property Value
Type Description
DrawingColor

Orchid

Declaration
public static DrawingColor Orchid { get; }
Property Value
Type Description
DrawingColor

PaleGoldenrod

Declaration
public static DrawingColor PaleGoldenrod { get; }
Property Value
Type Description
DrawingColor

PaleGreen

Declaration
public static DrawingColor PaleGreen { get; }
Property Value
Type Description
DrawingColor

PaleTurquoise

Declaration
public static DrawingColor PaleTurquoise { get; }
Property Value
Type Description
DrawingColor

PaleVioletRed

Declaration
public static DrawingColor PaleVioletRed { get; }
Property Value
Type Description
DrawingColor

PapayaWhip

Declaration
public static DrawingColor PapayaWhip { get; }
Property Value
Type Description
DrawingColor

PeachPuff

Declaration
public static DrawingColor PeachPuff { get; }
Property Value
Type Description
DrawingColor

Peru

Declaration
public static DrawingColor Peru { get; }
Property Value
Type Description
DrawingColor

Pink

Declaration
public static DrawingColor Pink { get; }
Property Value
Type Description
DrawingColor

Plum

Declaration
public static DrawingColor Plum { get; }
Property Value
Type Description
DrawingColor

PowderBlue

Declaration
public static DrawingColor PowderBlue { get; }
Property Value
Type Description
DrawingColor

Purple

Declaration
public static DrawingColor Purple { get; }
Property Value
Type Description
DrawingColor

R

Declaration
public byte R { get; }
Property Value
Type Description
System.Byte

Red

Declaration
public static DrawingColor Red { get; }
Property Value
Type Description
DrawingColor

RosyBrown

Declaration
public static DrawingColor RosyBrown { get; }
Property Value
Type Description
DrawingColor

RoyalBlue

Declaration
public static DrawingColor RoyalBlue { get; }
Property Value
Type Description
DrawingColor

S

Declaration
public double S { get; }
Property Value
Type Description
System.Double

SaddleBrown

Declaration
public static DrawingColor SaddleBrown { get; }
Property Value
Type Description
DrawingColor

Salmon

Declaration
public static DrawingColor Salmon { get; }
Property Value
Type Description
DrawingColor

SandyBrown

Declaration
public static DrawingColor SandyBrown { get; }
Property Value
Type Description
DrawingColor

ScrollBar

Declaration
public static DrawingColor ScrollBar { get; }
Property Value
Type Description
DrawingColor

SeaGreen

Declaration
public static DrawingColor SeaGreen { get; }
Property Value
Type Description
DrawingColor

SeaShell

Declaration
public static DrawingColor SeaShell { get; }
Property Value
Type Description
DrawingColor

Sienna

Declaration
public static DrawingColor Sienna { get; }
Property Value
Type Description
DrawingColor

Silver

Declaration
public static DrawingColor Silver { get; }
Property Value
Type Description
DrawingColor

SkyBlue

Declaration
public static DrawingColor SkyBlue { get; }
Property Value
Type Description
DrawingColor

SlateBlue

Declaration
public static DrawingColor SlateBlue { get; }
Property Value
Type Description
DrawingColor

SlateGray

Declaration
public static DrawingColor SlateGray { get; }
Property Value
Type Description
DrawingColor

Snow

Declaration
public static DrawingColor Snow { get; }
Property Value
Type Description
DrawingColor

SpringGreen

Declaration
public static DrawingColor SpringGreen { get; }
Property Value
Type Description
DrawingColor

SteelBlue

Declaration
public static DrawingColor SteelBlue { get; }
Property Value
Type Description
DrawingColor

Style

Declaration
public static DrawingColor Style { get; }
Property Value
Type Description
DrawingColor

SystemColor

Declaration
public SystemColorValue? SystemColor { get; }
Property Value
Type Description
System.Nullable<SystemColorValue>

Tan

Declaration
public static DrawingColor Tan { get; }
Property Value
Type Description
DrawingColor

Teal

Declaration
public static DrawingColor Teal { get; }
Property Value
Type Description
DrawingColor

Text1

Declaration
public static DrawingColor Text1 { get; }
Property Value
Type Description
DrawingColor

Text2

Declaration
public static DrawingColor Text2 { get; }
Property Value
Type Description
DrawingColor

Theme

Declaration
public ThemeColor? Theme { get; }
Property Value
Type Description
System.Nullable<ThemeColor>

Thistle

Declaration
public static DrawingColor Thistle { get; }
Property Value
Type Description
DrawingColor

Tomato

Declaration
public static DrawingColor Tomato { get; }
Property Value
Type Description
DrawingColor

Transforms

Declaration
public List<ColorTransform> Transforms { get; }
Property Value
Type Description
List<ColorTransform>

Turquoise

Declaration
public static DrawingColor Turquoise { get; }
Property Value
Type Description
DrawingColor

Type

Declaration
public DrawingColorType Type { get; }
Property Value
Type Description
DrawingColorType

Violet

Declaration
public static DrawingColor Violet { get; }
Property Value
Type Description
DrawingColor

Wheat

Declaration
public static DrawingColor Wheat { get; }
Property Value
Type Description
DrawingColor

White

Declaration
public static DrawingColor White { get; }
Property Value
Type Description
DrawingColor

WhiteSmoke

Declaration
public static DrawingColor WhiteSmoke { get; }
Property Value
Type Description
DrawingColor

Window

Declaration
public static DrawingColor Window { get; }
Property Value
Type Description
DrawingColor

WindowFrame

Declaration
public static DrawingColor WindowFrame { get; }
Property Value
Type Description
DrawingColor

WindowText

Declaration
public static DrawingColor WindowText { get; }
Property Value
Type Description
DrawingColor

Yellow

Declaration
public static DrawingColor Yellow { get; }
Property Value
Type Description
DrawingColor

YellowGreen

Declaration
public static DrawingColor YellowGreen { get; }
Property Value
Type Description
DrawingColor

Methods

Equals(DrawingColor)

Declaration
protected bool Equals(DrawingColor other)
Parameters
Type Name Description
DrawingColor other
Returns
Type Description
System.Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

FromArgb(Byte, Byte, Byte, Byte)

Declaration
public static DrawingColor FromArgb(byte a, byte r, byte g, byte b)
Parameters
Type Name Description
System.Byte a
System.Byte r
System.Byte g
System.Byte b
Returns
Type Description
DrawingColor

FromColorName(String)

Declaration
public static DrawingColor FromColorName(string colorName)
Parameters
Type Name Description
System.String colorName
Returns
Type Description
DrawingColor

FromHex(String)

Declaration
public static DrawingColor FromHex(string hex)
Parameters
Type Name Description
System.String hex
Returns
Type Description
DrawingColor

FromHsl(Double, Double, Double)

Declaration
public static DrawingColor FromHsl(double hue, double saturation, double luminance)
Parameters
Type Name Description
System.Double hue
System.Double saturation
System.Double luminance
Returns
Type Description
DrawingColor

FromHslColor(Hsl)

Declaration
public static ARgb FromHslColor(Hsl hsl)
Parameters
Type Name Description
Hsl hsl
Returns
Type Description
ARgb

FromRgb(Byte, Byte, Byte)

Declaration
public static DrawingColor FromRgb(byte r, byte g, byte b)
Parameters
Type Name Description
System.Byte r
System.Byte g
System.Byte b
Returns
Type Description
DrawingColor

FromScRgb(Single, Single, Single)

Declaration
public static DrawingColor FromScRgb(float r, float g, float b)
Parameters
Type Name Description
System.Single r
System.Single g
System.Single b
Returns
Type Description
DrawingColor

GetContrast(Boolean)

Declaration
public DrawingColor GetContrast(bool preserveOpacity)
Parameters
Type Name Description
System.Boolean preserveOpacity
Returns
Type Description
DrawingColor
Remarks

https://raw.githubusercontent.com/sanjayatpilcrow/SharpSnippets/master/POCs/POCs/Sanjay/SharpSnippets/Drawing/ColorExtensions.cs

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

ToArgb()

Declaration
public int ToArgb()
Returns
Type Description
System.Int32

ToArgb(Theme)

Declaration
public int ToArgb(Theme theme)
Parameters
Type Name Description
Theme theme
Returns
Type Description
System.Int32

ToColor()

Declaration
public Color ToColor()
Returns
Type Description
System.Drawing.Color

ToHex()

Declaration
public string ToHex()
Returns
Type Description
System.String

ToHex(Color)

Declaration
public static string ToHex(Color color)
Parameters
Type Name Description
System.Drawing.Color color
Returns
Type Description
System.String

ToHexWithAlpha(Color)

Declaration
public static string ToHexWithAlpha(Color color)
Parameters
Type Name Description
System.Drawing.Color color
Returns
Type Description
System.String

ToHslColor()

Declaration
public Hsl ToHslColor()
Returns
Type Description
Hsl

ToHslColor(ARgb)

Declaration
public static Hsl ToHslColor(ARgb rgb)
Parameters
Type Name Description
ARgb rgb
Returns
Type Description
Hsl

Transform(ColorTransform)

Declaration
public DrawingColor Transform(ColorTransform transform)
Parameters
Type Name Description
ColorTransform transform
Returns
Type Description
DrawingColor
Back to top Generated by DocFX