Share via


SizeF Constructors

Definition

Overloads

SizeF(Vector2)
SizeF(Single)

Initializes a new instance of the SizeF struct with the specified value for both width and height.

SizeF(Single, Single)

Initializes a new instance of the SizeF struct with the specified width and height.

SizeF(Vector2)

Source:
SizeF.cs
Source:
SizeF.cs
Source:
SizeF.cs
public:
 SizeF(System::Numerics::Vector2 vector);
public SizeF(System.Numerics.Vector2 vector);
new Microsoft.Maui.Graphics.SizeF : System.Numerics.Vector2 -> Microsoft.Maui.Graphics.SizeF
Public Sub New (vector As Vector2)

Parameters

vector
Vector2

Applies to

SizeF(Single)

Source:
SizeF.cs
Source:
SizeF.cs
Source:
SizeF.cs

Initializes a new instance of the SizeF struct with the specified value for both width and height.

public SizeF(float size = 0);
new Microsoft.Maui.Graphics.SizeF : single -> Microsoft.Maui.Graphics.SizeF
Public Sub New (Optional size As Single = 0)

Parameters

size
Single

The value to use for both width and height.

Applies to

SizeF(Single, Single)

Source:
SizeF.cs
Source:
SizeF.cs
Source:
SizeF.cs

Initializes a new instance of the SizeF struct with the specified width and height.

public:
 SizeF(float width, float height);
public SizeF(float width, float height);
new Microsoft.Maui.Graphics.SizeF : single * single -> Microsoft.Maui.Graphics.SizeF
Public Sub New (width As Single, height As Single)

Parameters

width
Single

The width of the size.

height
Single

The height of the size.

Applies to