PointF::Equality Operator (PointF, PointF)

 

Compares two PointF structures. The result specifies whether the values of the X and Y properties of the two PointF structures are equal.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
static bool operator ==(
	PointF left,
	PointF right
)

Parameters

left
Type: System.Drawing::PointF

A PointF to compare.

right
Type: System.Drawing::PointF

A PointF to compare.

Return Value

Type: System::Boolean

true if the X and Y values of the left and right PointF structures are equal; otherwise, false.

The following code example demonstrates how to use the Equality operator. To run this example, paste the following code into a Windows Form. Handle the form's Paint event and call opAdditionExample, passing e as PaintEventArgs.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: