Struct Color
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Goui
Assembly: Goui.dll
Syntax
[JsonConverter(typeof(ColorJsonConverter))]
public struct Color : IEquatable<Color>
Constructors
|
Improve this Doc
View Source
Color(Byte, Byte, Byte)
Declaration
public Color(byte r, byte g, byte b)
Parameters
Type |
Name |
Description |
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
|
Improve this Doc
View Source
Color(Byte, Byte, Byte, Byte)
Declaration
public Color(byte r, byte g, byte b, byte a)
Parameters
Type |
Name |
Description |
System.Byte |
r |
|
System.Byte |
g |
|
System.Byte |
b |
|
System.Byte |
a |
|
Fields
|
Improve this Doc
View Source
A
Declaration
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
B
Declaration
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
G
Declaration
Field Value
Type |
Description |
System.Byte |
|
|
Improve this Doc
View Source
R
Declaration
Field Value
Type |
Description |
System.Byte |
|
Properties
|
Improve this Doc
View Source
Alpha
Declaration
public double Alpha { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Blue
Declaration
public double Blue { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Green
Declaration
public double Green { get; set; }
Property Value
Type |
Description |
System.Double |
|
|
Improve this Doc
View Source
Red
Declaration
public double Red { get; set; }
Property Value
Type |
Description |
System.Double |
|
Methods
|
Improve this Doc
View Source
Equals(Color)
Declaration
public bool Equals(Color other)
Parameters
Type |
Name |
Description |
Color |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
FromStyleValue(Object)
Declaration
public static Color FromStyleValue(object styleColor)
Parameters
Type |
Name |
Description |
System.Object |
styleColor |
|
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Parse(String)
Declaration
public static Color Parse(string styleValue)
Parameters
Type |
Name |
Description |
System.String |
styleValue |
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Implements
System.IEquatable<T>