Equality Operator
Collapse the table of content
Expand the table of content

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)

'Declaration
Public Shared Operator = ( _
	color1 As Color, _
	color2 As Color _
) As Boolean

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