Equality operator

Color.Equality operator

Compares two Color structures for equality.

Syntax


public static bool operator ==(
  Color color1, 
  Color color2
)

Parameters

color1

Type: Color

The first Color structure to compare.

color2

Type: Color

The second Color structure to compare.

Return value

Type: System.Boolean

true if all values of color1 and color2 are equal; otherwise, false.

Remarks

Color structures are equal if their values are equal. The alpha channel is included in the value determination.

Requirements (Windows 10 device family)

Device family

API contract

Namespace

Windows.UI

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI

Assembly

System.Runtime.WindowsRuntime.dll

See also

Color

 

 

Show:
© 2016 Microsoft