SizeF.Equals

Equals(object)

Tests to see whether the specified object is a SizeF structure with the same dimensions as this SizeF structure.

public override bool Equals(object obj)
ParameterTypeDescription
objObjectThe Object to test.

Return Value

This method returns true if obj is a SizeF and has the same width and height as this SizeF; otherwise, false.

See Also


Equals(SizeF)

Tests whether other SizeF structure has the same size of this SizeF structure.

public bool Equals(SizeF other)
ParameterTypeDescription
otherSizeFOther size to test

Return Value

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

See Also