SizeF Struct
NuGet: GHIElectronics.TinyCLR.Drawing
Assembly: GHIElectronics.TinyCLR.Drawing
Namespace: System.Drawing
A floating-point width × height size.
public struct SizeF
Constructors
SizeF(SizeF size)
public SizeF(SizeF size)
Initializes a new size as a copy of an existing size.
SizeF(float width, float height)
public SizeF(float width, float height)
Initializes a new size with the given width and height.
Properties
IsEmpty
public bool IsEmpty { get; }
Gets a value indicating whether both width and height are zero.
Width
public float Width { get; set; }
Gets or sets the width.
Height
public float Height { get; set; }
Gets or sets the height.
Methods
SizeF()
public static readonly SizeF Empty = new SizeF()
Represents a size with zero width and height.
Returns SizeF Empty = new