Struct PointF

PointF structure

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

public struct PointF : IEquatable<PointF>

Constructors

NameDescription
PointF(float, float)Initializes a new instance of the PointF structure with the specified coordinates.

Properties

NameDescription
IsEmpty { get; }Gets a value indicating whether this PointF is empty.
X { get; set; }Gets or sets the x-coordinate of this PointF.
Y { get; set; }Gets or sets the y-coordinate of this PointF.

Methods

NameDescription
static Add(PointF, Size)Translates a given PointF by a specified SizeF.
static Add(PointF, SizeF)Translates a given PointF by a specified SizeF.
static Subtract(PointF, Size)Translates a PointF by the negative of a given Size .
static Subtract(PointF, SizeF)Translates a PointF by the negative of a given Size .
override Equals(object)Specifies whether this PointF contains the same coordinates as the specified Object.
Equals(PointF)Tests whether other PointF structure has the same location of this PointF structure.
override GetHashCode()Returns a hash code for this instance.
override ToString()Converts the attributes of this PointF to a human readable string.
operator +Translates a PointF by a given Size . (2 operators)
operator ==Compares two PointF structures. The result specifies whether the values of the X and Y properties of the two PointF structures are equal.
operator !=Determines whether the coordinates of the specified points are not equal.
operator -Translates a PointF by the negative of a given Size . (2 operators)

Fields

NameDescription
static readonly EmptyRepresents a new instance of the PointF class with member data left uninitialized.

See Also