PointF PointF PointF PointF Struct

Definition

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

public value class PointF
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public struct PointF
type PointF = struct
Public Structure PointF
Inheritance
Attributes

Remarks

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

Constructors

PointF(Single, Single) PointF(Single, Single) PointF(Single, Single) PointF(Single, Single)

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

Fields

Empty Empty Empty Empty

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

Properties

IsEmpty IsEmpty IsEmpty IsEmpty

Gets a value indicating whether this PointF is empty.

X X X X

Gets or sets the x-coordinate of this PointF.

Y Y Y Y

Gets or sets the y-coordinate of this PointF.

Methods

Add(PointF, Size) Add(PointF, Size) Add(PointF, Size) Add(PointF, Size)

Translates a given PointF by the specified Size.

Add(PointF, SizeF) Add(PointF, SizeF) Add(PointF, SizeF) Add(PointF, SizeF)

Translates a given PointF by a specified SizeF.

Equals(PointF) Equals(PointF) Equals(PointF) Equals(PointF)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Specifies whether this PointF contains the same coordinates as the specified Object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns a hash code for this PointF structure.

Subtract(PointF, Size) Subtract(PointF, Size) Subtract(PointF, Size) Subtract(PointF, Size)

Translates a PointF by the negative of a specified size.

Subtract(PointF, SizeF) Subtract(PointF, SizeF) Subtract(PointF, SizeF) Subtract(PointF, SizeF)

Translates a PointF by the negative of a specified size.

ToString() ToString() ToString() ToString()

Converts this PointF to a human readable string.

Operators

Addition(PointF, SizeF) Addition(PointF, SizeF) Addition(PointF, SizeF) Addition(PointF, SizeF)

Translates the PointF by the specified SizeF.

Addition(PointF, Size) Addition(PointF, Size) Addition(PointF, Size) Addition(PointF, Size)

Translates a PointF by a given Size.

Equality(PointF, PointF) Equality(PointF, PointF) Equality(PointF, PointF) Equality(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.

Inequality(PointF, PointF) Inequality(PointF, PointF) Inequality(PointF, PointF) Inequality(PointF, PointF)

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

Subtraction(PointF, Size) Subtraction(PointF, Size) Subtraction(PointF, Size) Subtraction(PointF, Size)

Translates a PointF by the negative of a given Size.

Subtraction(PointF, SizeF) Subtraction(PointF, SizeF) Subtraction(PointF, SizeF) Subtraction(PointF, SizeF)

Translates a PointF by the negative of a specified SizeF.

Applies to