Class RGBColor
Represents the class for Red, Green and Blue (RGB) color model.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public sealed class RGBColor : ValueType, IEquatable<RGBColor>
Properties
A
Gets or sets the alpha value of the color.
Declaration
public double A { get; set; }
Property Value
Type |
---|
System.Double |
B
Gets or sets the brightness value of the color.
Declaration
public double B { get; set; }
Property Value
Type |
---|
System.Double |
G
Gets or sets the saturation value of the color.
Declaration
public double G { get; set; }
Property Value
Type |
---|
System.Double |
R
Gets or sets the hue value of the color.
Declaration
public double R { get; set; }
Property Value
Type |
---|
System.Double |
Methods
Equals(RGBColor)
Indicates whether this instance and a specified color are equal.
Declaration
public bool Equals(RGBColor color)
Parameters
Type | Name | Description |
---|---|---|
RGBColor | color | The color to compare with the current instance. |
Returns
Type | Description |
---|---|
System.Boolean | true if color and this instance are the same type and represent the same value; otherwise, false. |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type |
---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
---|
System.Int32 |
Operators
Equality(RGBColor, RGBColor)
Returns a value that indicates whether two specified RGBColor values are equal.
Declaration
public static bool operator ==(RGBColor left, RGBColor right)
Parameters
Type | Name | Description |
---|---|---|
RGBColor | left | The first value to compare. |
RGBColor | right | The second value to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if left and right are equal; otherwise, false. |
Inequality(RGBColor, RGBColor)
Returns a value that indicates whether two specified RGBColor values are not equal.
Declaration
public static bool operator !=(RGBColor left, RGBColor right)
Parameters
Type | Name | Description |
---|---|---|
RGBColor | left | The first value to compare. |
RGBColor | right | The second value to compare. |
Returns
Type | Description |
---|---|
System.Boolean | true if left and right are not equal; otherwise, false. |