PeachDrawing.Core

PeachDrawing.Core.PaintColor

PaintColor.Equals Method

Overloads  
Equals(object) Tests whether the specified object is a PaintColor structure and is equivalent to this PaintColor structure.
Equals(PaintColor) Tests whether color is the same color as this one. Without this typed overload every == and every dictionary lookup keyed on a color boxed it.

PaintColor.Equals(object) Method

Tests whether the specified object is a PaintColor structure and is equivalent to this PaintColor structure.

public override bool Equals(object? obj);

Parameters

obj System.Object

The object to test.

Returns

System.Boolean
true if obj is a PaintColor structure equivalent to this PaintColor structure; otherwise, false.

PaintColor.Equals(PaintColor) Method

Tests whether color is the same color as this one. Without this typed overload every == and every dictionary lookup keyed on a color boxed it.

public bool Equals(PeachDrawing.Core.PaintColor color);

Parameters

color PaintColor

The color to compare with.

Returns

System.Boolean
true if both are the same color; otherwise, false.