# SizeF struct

Namespace: [Eto.Drawing](https://eto.picoe.ca/api/namespace/eto.drawing.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[TypeConverter(SizeFConverterInternal)]
public struct SizeF : IEquatable<SizeF>
```

Represents a floating point size with width and height components

## Constructors

- [SizeF](https://eto.picoe.ca/api/type/eto.drawing.sizef/ctor.md): (3 overloads) Initializes a new SizeF class with an identical width and height

## Fields

- [Empty](https://eto.picoe.ca/api/type/eto.drawing.sizef/empty.md): (static) Gets an empty size with a zero width and height
- [MaxValue](https://eto.picoe.ca/api/type/eto.drawing.sizef/maxvalue.md): (static) SizeF with width and height with a maximum float value
- [MinValue](https://eto.picoe.ca/api/type/eto.drawing.sizef/minvalue.md): (static) SizeF with width and height with a minimum float value
- [NegativeInfinity](https://eto.picoe.ca/api/type/eto.drawing.sizef/negativeinfinity.md): (static) A SizeF with the width and height set to float.NegativeInfinity
- [PositiveInfinity](https://eto.picoe.ca/api/type/eto.drawing.sizef/positiveinfinity.md): (static) A SizeF with the width and height set to float.PositiveInfinity

## Properties

- [Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md): Gets or sets the height
- [IsEmpty](https://eto.picoe.ca/api/type/eto.drawing.sizef/isempty.md): Gets a value indicating that either the [SizeF.Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md) or [SizeF.Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md) are zero
- [IsZero](https://eto.picoe.ca/api/type/eto.drawing.sizef/iszero.md): Gets a value indicating that both the [SizeF.Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md) and [SizeF.Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md) are zero
- [Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md): Gets or sets the width

## Methods

- [Abs](https://eto.picoe.ca/api/type/eto.drawing.sizef/abs.md): (static) Returns the absolute width and height of the specified `size`
- [Contains](https://eto.picoe.ca/api/type/eto.drawing.sizef/contains.md): (2 overloads) Gets a value indicating that the specified `x` and `y` values are within the [SizeF.Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md) and [SizeF.Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md) of this size
- [Equals](https://eto.picoe.ca/api/type/eto.drawing.sizef/equals.md): (2 overloads) Compares this size to the specified `obj`
- [FitTo](https://eto.picoe.ca/api/type/eto.drawing.sizef/fitto.md): Fits this size to the specified `constraint`, keeping the aspect
- [GetHashCode](https://eto.picoe.ca/api/type/eto.drawing.sizef/gethashcode.md): Gets the hash code for this Size
- [Max](https://eto.picoe.ca/api/type/eto.drawing.sizef/max.md): (static) Returns the maximum width and height of two sizes
- [Min](https://eto.picoe.ca/api/type/eto.drawing.sizef/min.md): (static) Returns the minimum width and height of two sizes
- [ToString](https://eto.picoe.ca/api/type/eto.drawing.sizef/tostring.md): Converts this Size struct to a string

## Operators

- [operator +](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-addition.md): (2 overloads, static) Adds a `value` to the [SizeF.Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md) and [SizeF.Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md) of the specified `size`
- [operator /](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-division.md): (2 overloads, static) Divides the [SizeF.Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md) and [SizeF.Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md) of a `size` by the specified `factor`
- [operator ==](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-equality.md): (static) Compares two sizes for equality
- [operator !=](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-inequality.md): (static) Compares two sizes for inequality
- [operator *](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-multiply.md): (3 overloads, static) Multiplies the [SizeF.Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md) and [SizeF.Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md) of a `size` by the specified `factor`
- [operator -](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-subtraction.md): (2 overloads, static) Subtracts a `value` from the [SizeF.Width](https://eto.picoe.ca/api/type/eto.drawing.sizef/width.md) and [SizeF.Height](https://eto.picoe.ca/api/type/eto.drawing.sizef/height.md) of the specified `size`
- [operator -](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-unarynegation.md): (static) Negates the Width and Height of the specified `size` value

## Convertors

- [operator explicit](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-explicit.md): (static) Explicit conversion from a `point` to a Size with a Width and Height of the X and Y values of the point, respectively
- [operator implicit](https://eto.picoe.ca/api/type/eto.drawing.sizef/op-implicit.md): (static) Implicitly converts the specified integral `size` to a floating point [SizeF](https://eto.picoe.ca/api/type/eto.drawing.sizef.md)
