PaddingF
ReferencesRepresents an amount of padding to apply to an object at the top, left, right, and bottom.
Constructors
PaddingF
#Initializes a new instance of the Padding class with the specified padding for all sides
Parameters:
| all (float) | Amount of padding to apply to each side |
PaddingF
#Initializes a new instance of the Padding class with the specified padding for horizontal and vertical sides
Fields
Properties
Horizontal
#Size
#Gets the padding as a size value with the Horizontal and Vertical values as the Size.Width and Size.Height, respectively.
Vertical
#Methods
Equals
#Determines the equality between this instance and the specified object
Parameters:
| obj (object) | Object to compare to |
Returns: True if obj is a Padding object and is equal to this instance, false if not
Overrides: ValueType.Equals
Equals
#Determines equality between this instance and the specified padding
Parameters:
| other (PaddingF) | Other padding instance to compare with |
Returns: True if the specified padding is equal to this instance, false if not
GetHashCode
#Gets the hash code for this Padding instance
Returns: Hash code for this instance
Overrides: ValueType.GetHashCode
ToString
#Converts this object to a string
Returns: String representation of this object
Overrides: ValueType.ToString
Operators
| Operation | Result | Description | ||
|---|---|---|---|---|
| PaddingF | + | PaddingF | PaddingF | Adds two padding values together |
| PaddingF | == | PaddingF | bool | Determines the equality of two padding objects |
| PaddingF | != | PaddingF | bool | Determines the inequality of two padding objects |
| PaddingF | - | PaddingF | PaddingF | Subtracts a padding value from another value |
| - | PaddingF | PaddingF | Returns a new Padding with negative left, top, right, and bottom values | |