Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Color.Equality Operator

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Tests whether two Color structures are identical.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)

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

Parameters

color1
Type: System.Windows.Media.Color
The first Color structure to compare.
color2
Type: System.Windows.Media.Color
The second Color structure to compare.

Return Value

Type: System.Boolean
true if color1 and color2 are exactly identical; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show: