Share via


SizeF Struct

Definition

Represents a size with single-precision floating-point width and height.

public value class SizeF
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.SizeFTypeConverter))]
public struct SizeF
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.SizeFTypeConverter))>]
type SizeF = struct
Public Structure SizeF
Inheritance
SizeF
Attributes

Constructors

Name Description
SizeF(Single, Single)

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

SizeF(Single)

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

SizeF(Vector2)

Fields

Name Description
Zero

A size with both width and height set to zero.

Properties

Name Description
Height
IsZero
Width

Methods

Name Description
Deconstruct(Single, Single)
Equals(Object)
Equals(SizeF)
GetHashCode()
ToString()
TransformNormalBy(Matrix3x2)
TryParse(String, SizeF)

Operators

Name Description
Addition(SizeF, SizeF)
Division(SizeF, Single)
Equality(SizeF, SizeF)
Explicit(SizeF to PointF)
Explicit(SizeF to Vector2)
Explicit(Vector2 to SizeF)
Implicit(SizeF to Size)
Inequality(SizeF, SizeF)
Multiply(SizeF, Single)
Subtraction(SizeF, SizeF)

Extension Methods

Name Description
AsSizeF(SizeF)

Converts a .NET MAUI Graphics SizeF to a SkiaSharp SKSize.

Lerp(SizeF, SizeF, Double)

Applies to