Click or drag to resize

Padding Structure

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

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public struct Padding : IEquatable<Padding>

The Padding type exposes the following members.

Constructors
  NameDescription
Public methodPadding(Int32)
Initializes a new instance of the Padding class with the specified padding for all sides
Public methodPadding(Int32, Int32)
Initializes a new instance of the Padding class with the specified padding for horizontal and vertical sides
Public methodPadding(Int32, Int32, Int32, Int32)
Initializes a new instance of the Padding class
Top
Properties
  NameDescription
Public propertyBottom
Gets or sets the padding on the bottom
Public propertyHorizontal
Gets the total horizontal padding, which is the sum of Left and Right.
Public propertyIsZero
Gets a value indicating that all sides of the padding are zero
Public propertyLeft
Gets or sets the padding on the left
Public propertyRight
Gets or sets the padding on the right
Public propertySize
Gets the padding as a size value with the Horizontal and Vertical values as the Width and Height, respectively.
Public propertyTop
Gets or sets the padding on the top
Public propertyVertical
Gets the total vertical padding, which is the sum of Top and Bottom
Top
Methods
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two padding values together
Public operatorStatic memberEquality
Determines the equality of two padding objects
Public operatorStatic member(Int32 to Padding)
Implicitly converts a single integer to a padding with all sides of equal value.
Public operatorStatic memberInequality
Determines the inequality of two padding objects
Public operatorStatic memberSubtraction
Subtracts a padding value from another value
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
Gets an empty padding with zero for each side
Top
See Also