PointF Struct
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
public value class PointF : IEquatable<System::Drawing::PointF>
public value class PointF
public struct PointF : IEquatable<System.Drawing.PointF>
public struct PointF
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public struct PointF
type PointF = struct
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type PointF = struct
Public Structure PointF
Implements IEquatable(Of PointF)
Public Structure PointF
- Inheritance
- Attributes
- Implements
To convert a PointF to a Point, use Point.Round or Point.Truncate.
PointF(Single, Single) |
Initializes a new instance of the PointF class with the specified coordinates. |
PointF(Vector2) |
Initializes a new instance of the PointF struct from the specified Vector2. |
Is |
Gets a value indicating whether this PointF is empty. |
X |
Gets or sets the x-coordinate of this PointF. |
Y |
Gets or sets the y-coordinate of this PointF. |
Add(PointF, Size) | |
Add(PointF, SizeF) | |
Equals(Object) |
Specifies whether this PointF contains the same coordinates as the specified Object. |
Equals(PointF) |
Indicates whether the current object is equal to another object of the same type. |
Get |
Returns a hash code for this PointF structure. |
Subtract(PointF, Size) |
Translates a PointF by the negative of a specified size. |
Subtract(PointF, SizeF) |
Translates a PointF by the negative of a specified size. |
To |
Converts this PointF to a human readable string. |
To |
Addition(PointF, Size) | |
Addition(PointF, SizeF) | |
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. |
Explicit(PointF to Vector2) | |
Explicit(Vector2 to PointF) | |
Inequality(PointF, PointF) |
Determines whether the coordinates of the specified points are not equal. |
Subtraction(PointF, Size) | |
Subtraction(PointF, SizeF) |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: