Bewerken

Share via


PointF Constructors

Definition

Overloads

PointF(Vector2)

Initializes a new instance of the PointF struct from the specified Vector2.

PointF(Single, Single)

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

PointF(Vector2)

Source:
PointF.cs
Source:
PointF.cs
Source:
PointF.cs

Initializes a new instance of the PointF struct from the specified Vector2.

public:
 PointF(System::Numerics::Vector2 vector);
public PointF (System.Numerics.Vector2 vector);
new System.Drawing.PointF : System.Numerics.Vector2 -> System.Drawing.PointF
Public Sub New (vector As Vector2)

Parameters

vector
Vector2

The source vector.

Applies to

PointF(Single, Single)

Source:
PointF.cs
Source:
PointF.cs
Source:
PointF.cs

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

public:
 PointF(float x, float y);
public PointF (float x, float y);
new System.Drawing.PointF : single * single -> System.Drawing.PointF
Public Sub New (x As Single, y As Single)

Parameters

x
Single

The horizontal position of the point.

y
Single

The vertical position of the point.

Applies to