# PaddingF 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(PaddingFConverterInternal)]
public struct PaddingF : IEquatable<PaddingF>
```

Represents an amount of padding to apply to an object at the top, left, right, and bottom.

## Constructors

- [PaddingF](https://eto.picoe.ca/api/type/eto.drawing.paddingf/ctor.md): (3 overloads) Initializes a new instance of the Padding class with the specified padding for all sides

## Fields

- [Empty](https://eto.picoe.ca/api/type/eto.drawing.paddingf/empty.md): (static) Gets an empty padding with zero for each side

## Properties

- [Bottom](https://eto.picoe.ca/api/type/eto.drawing.paddingf/bottom.md): Gets or sets the padding on the bottom
- [Horizontal](https://eto.picoe.ca/api/type/eto.drawing.paddingf/horizontal.md): Gets the total horizontal padding, which is the sum of [PaddingF.Left](https://eto.picoe.ca/api/type/eto.drawing.paddingf/left.md) and [PaddingF.Right](https://eto.picoe.ca/api/type/eto.drawing.paddingf/right.md).
- [IsZero](https://eto.picoe.ca/api/type/eto.drawing.paddingf/iszero.md): Gets a value indicating that all sides of the padding are zero
- [Left](https://eto.picoe.ca/api/type/eto.drawing.paddingf/left.md): Gets or sets the padding on the left
- [Right](https://eto.picoe.ca/api/type/eto.drawing.paddingf/right.md): Gets or sets the padding on the right
- [Size](https://eto.picoe.ca/api/type/eto.drawing.paddingf/size.md): Gets the padding as a size value with the [PaddingF.Horizontal](https://eto.picoe.ca/api/type/eto.drawing.paddingf/horizontal.md) and [PaddingF.Vertical](https://eto.picoe.ca/api/type/eto.drawing.paddingf/vertical.md) values as the [Size.Width](https://eto.picoe.ca/api/type/eto.drawing.size/width.md) and [Size.Height](https://eto.picoe.ca/api/type/eto.drawing.size/height.md), respectively.
- [Top](https://eto.picoe.ca/api/type/eto.drawing.paddingf/top.md): Gets or sets the padding on the top
- [Vertical](https://eto.picoe.ca/api/type/eto.drawing.paddingf/vertical.md): Gets the total vertical padding, which is the sum of [PaddingF.Top](https://eto.picoe.ca/api/type/eto.drawing.paddingf/top.md) and [PaddingF.Bottom](https://eto.picoe.ca/api/type/eto.drawing.paddingf/bottom.md)

## Methods

- [Equals](https://eto.picoe.ca/api/type/eto.drawing.paddingf/equals.md): (2 overloads) Determines the equality between this instance and the specified object
- [GetHashCode](https://eto.picoe.ca/api/type/eto.drawing.paddingf/gethashcode.md): Gets the hash code for this Padding instance
- [ToString](https://eto.picoe.ca/api/type/eto.drawing.paddingf/tostring.md): Converts this object to a string

## Operators

- [operator +](https://eto.picoe.ca/api/type/eto.drawing.paddingf/op-addition.md): (static) Adds two padding values together
- [operator ==](https://eto.picoe.ca/api/type/eto.drawing.paddingf/op-equality.md): (static) Determines the equality of two padding objects
- [operator !=](https://eto.picoe.ca/api/type/eto.drawing.paddingf/op-inequality.md): (static) Determines the inequality of two padding objects
- [operator -](https://eto.picoe.ca/api/type/eto.drawing.paddingf/op-subtraction.md): (static) Subtracts a padding value from another value
- [operator -](https://eto.picoe.ca/api/type/eto.drawing.paddingf/op-unarynegation.md): (static) Returns a new Padding with negative left, top, right, and bottom values

## Convertors

- [operator implicit](https://eto.picoe.ca/api/type/eto.drawing.paddingf/op-implicit.md): (2 overloads, static) Implicitly converts a single integer to a padding with all sides of equal value.
