แก้ไข

แชร์ผ่าน


Color.Equality(Color, Color) Operator

Definition

Tests whether two Color structs are identical.

public:
 static bool operator ==(Windows::UI::Color color1, Windows::UI::Color color2);
public static bool operator == (Windows.UI.Color color1, Windows.UI.Color color2);
static member ( = ) : Windows.UI.Color * Windows.UI.Color -> bool
Public Shared Operator == (color1 As Color, color2 As Color) As Boolean

Parameters

color1
Color

The first Color struct to compare.

color2
Color

The second Color struct to compare.

Returns

true if color1 and color2 are exactly identical; otherwise, false.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Color struct. For more information, see Color in the UWP API reference.

Applies to