Equals

RectangleF.Equals method (1 of 2)

Determines whether the specified Object, is equal to this instance.

public override bool Equals(object obj)
Parameter Type Description
obj Object The Object to compare with this instance.

Return Value

true if the specified Object is equal to this instance; otherwise, false.

See Also


RectangleF.Equals method (2 of 2)

Tests whether other RectangleF structure has the same location and size of this RectangleF structure.

public bool Equals(RectangleF other)
Parameter Type Description
other RectangleF Other rectangle to test

Return Value

This method returns true if other RectangleF structure and its X, Y, Width, and Height properties are equal to the corresponding properties of this RectangleF structure; otherwise, false.

See Also