PointF Structure


Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.

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

public struct PointF

System_CAPS_pubmethodPointF(Single, Single)

Initializes a new instance of the PointF class with the specified coordinates.


Gets a value indicating whether this PointF is empty.


Gets or sets the x-coordinate of this PointF.


Gets or sets the y-coordinate of this PointF.

System_CAPS_pubmethodSystem_CAPS_staticAdd(PointF, Size)

Translates a given PointF by the specified Size.

System_CAPS_pubmethodSystem_CAPS_staticAdd(PointF, SizeF)

Translates a given PointF by a specified SizeF.


Specifies whether this PointF contains the same coordinates as the specified Object.(Overrides ValueType.Equals(Object).)


Returns a hash code for this PointF structure.(Overrides ValueType.GetHashCode().)


Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticSubtract(PointF, Size)

Translates a PointF by the negative of a specified size.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(PointF, SizeF)

Translates a PointF by the negative of a specified size.


Converts this PointF to a human readable string.(Overrides ValueType.ToString().)


Represents a new instance of the PointF class with member data left uninitialized.

System_CAPS_puboperatorSystem_CAPS_staticAddition(PointF, Size)

Translates a PointF by a given Size.

System_CAPS_puboperatorSystem_CAPS_staticAddition(PointF, SizeF)

Translates the PointF by the specified SizeF.

System_CAPS_puboperatorSystem_CAPS_staticEquality(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.

System_CAPS_puboperatorSystem_CAPS_staticInequality(PointF, PointF)

Determines whether the coordinates of the specified points are not equal.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(PointF, Size)

Translates a PointF by the negative of a given Size.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(PointF, SizeF)

Translates a PointF by the negative of a specified SizeF.

To convert a PointF to a Point, use Point.Round or Point.Truncate.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top