Color.Equality operator

Applies to Windows and Windows Phone

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

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:
© 2014 Microsoft