Color.Equals Method

Definition

Overloads

Equals(Object)

Tests whether the specified object is a Color struct and is equivalent to the current color.

Equals(Color)

Tests whether the specified Color struct is identical to the current color.

Remarks

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

For more information about this member, see Color.Equals in the .NET Framework API reference.

Equals(Object)

Tests whether the specified object is a Color struct and is equivalent to the current color.

public:
 override bool Equals(System::Object ^ o);
public override bool Equals (object o);
override this.Equals : obj -> bool
Public Overrides Function Equals (o As Object) As Boolean

Parameters

o
Object

The object to compare to the current Color struct.

Returns

Boolean

true if the specified object is a Color struct and is identical to the current Color struct; otherwise, false.

Applies to

Equals(Color)

Tests whether the specified Color struct is identical to the current color.

public:
 bool Equals(Windows::UI::Color color);
public bool Equals (Windows.UI.Color color);
override this.Equals : Windows.UI.Color -> bool
Public Function Equals (color As Color) As Boolean

Parameters

color
Color

The Color struct to compare to the current Color struct.

Returns

Boolean

true if the specified Color struct is identical to the current Color struct; otherwise, false.

Applies to