Padding

Represents padding.

Represents padding.

Constructors

public Padding(int size)

Initializes a new instance of the Padding struct.

Parameters:

size (int)
The padding for all sides.
public Padding(int horizontal, int vertical)

Initializes a new instance of the Padding struct.

Parameters:

horizontal (int)
The left and right padding.
vertical (int)
The top and bottom padding.
public Padding(int left, int top, int right, int bottom)

Initializes a new instance of the Padding struct.

Parameters:

left (int)
The left padding.
top (int)
The top padding.
right (int)
The right padding.
bottom (int)
The bottom padding.

Properties

Bottom : int

Gets the bottom padding.

Left : int

Gets the left padding.

Right : int

Gets the right padding.

Top : int

Gets the top padding.

Methods

public bool Equals(object obj)

Parameters:

obj (object)
public bool Equals(Padding other)

Parameters:

other (Padding)
public int GetHashCode()
public int GetHeight()

Gets the padding height.

Returns:

The padding height.

public int GetWidth()

Gets the padding width.

Returns:

The padding width.