Class CMYKColor
Represents the class for cyan, magenta, yellow and black (CMYK) color model.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public sealed class CMYKColor : ValueType, IEquatable<CMYKColor>Properties
A
Gets or sets the alpha value of the CMYKColor.
Declaration
public double A { get; set; }Property Value
| Type | 
|---|
| System.Double | 
C
Gets or sets the cyan value of the CMYKColor.
Declaration
public double C { get; set; }Property Value
| Type | 
|---|
| System.Double | 
K
Gets or sets the black value of the CMYKColor.
Declaration
public double K { get; set; }Property Value
| Type | 
|---|
| System.Double | 
M
Gets or sets the magenta value of the CMYKColor.
Declaration
public double M { get; set; }Property Value
| Type | 
|---|
| System.Double | 
Y
Gets or sets the yellow value of the CMYKColor.
Declaration
public double Y { get; set; }Property Value
| Type | 
|---|
| System.Double | 
Methods
Equals(CMYKColor)
Indicates whether this instance and a specified color are equal.
Declaration
public bool Equals(CMYKColor color)Parameters
| Type | Name | Description | 
|---|---|---|
| CMYKColor | 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(CMYKColor, CMYKColor)
Returns a value that indicates whether two specified CMYKColor values are equal.
Declaration
public static bool operator ==(CMYKColor left, CMYKColor right)Parameters
| Type | Name | Description | 
|---|---|---|
| CMYKColor | left | The first value to compare. | 
| CMYKColor | right | The second value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if left and right are equal; otherwise, false. | 
Inequality(CMYKColor, CMYKColor)
Returns a value that indicates whether two specified CMYKColor values not are equal.
Declaration
public static bool operator !=(CMYKColor left, CMYKColor right)Parameters
| Type | Name | Description | 
|---|---|---|
| CMYKColor | left | The first value to compare. | 
| CMYKColor | right | The second value to compare. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if left and right are not equal; otherwise, false. |