Padding Struct
Represents the space between the element border and the element content.
public struct Padding : IEquatable<Padding>
Public Structure Padding
Implements IEquatable(Of Padding)
Implements
Constructors
Padding(Double)
Initializes a new instance of the Padding struct with specified left/top/right/bottom padding.
Parameters
leftTopRightBottom
- System.Double
The left/top/right/bottom padding.
Padding(Double, LengthUnit)
Initializes a new instance of the Padding struct with specified left/top/right/bottom padding in specified measurement unit.
public Padding(double leftTopRightBottom, LengthUnit unit)
Public Sub New(leftTopRightBottom As Double, unit As LengthUnit)
Parameters
leftTopRightBottom
- System.Double
The left/top/right/bottom padding.
unit
- LengthUnit
The measurement unit used to specify padding.
Padding(Double, Double)
Initializes a new instance of the Padding struct with specified left/right and top/bottom padding.
public Padding(double leftRight, double topBottom)
Public Sub New(leftRight As Double, topBottom As Double)
Parameters
leftRight
- System.Double
The left/right padding.
topBottom
- System.Double
The top/bottom padding.
Padding(Double, Double, LengthUnit)
Initializes a new instance of the Padding struct with specified left/right and top/bottom padding in specified measurement unit.
public Padding(double leftRight, double topBottom, LengthUnit unit)
Public Sub New(leftRight As Double, topBottom As Double, unit As LengthUnit)
Parameters
leftRight
- System.Double
The left/right padding.
topBottom
- System.Double
The top/bottom padding.
unit
- LengthUnit
The measurement unit used to specify padding.
Padding(Double, Double, Double, Double)
Initializes a new instance of the Padding struct with specified left, top, right and bottom padding.
public Padding(double left, double top, double right, double bottom)
Public Sub New(left As Double, top As Double, right As Double, bottom As Double)
Parameters
left
- System.Double
The left padding.
top
- System.Double
The top padding.
right
- System.Double
The right padding.
bottom
- System.Double
The bottom padding.
Padding(Double, Double, Double, Double, LengthUnit)
Initializes a new instance of the Padding struct with specified left, top, right and bottom padding in specified measurement unit.
public Padding(double left, double top, double right, double bottom, LengthUnit unit)
Public Sub New(left As Double, top As Double, right As Double, bottom As Double, unit As LengthUnit)
Parameters
left
- System.Double
The left padding.
top
- System.Double
The top padding.
right
- System.Double
The right padding.
bottom
- System.Double
The bottom padding.
unit
- LengthUnit
The measurement unit used to specify padding.
Fields
None
Represents no padding or zero padding.
Field Value
Properties
Bottom
Gets the bottom padding in points.
Property Value
- System.Double
The bottom padding in points.
Left
Gets the left padding in points.
Property Value
- System.Double
The left padding in points.
Right
Gets the right padding in points.
Property Value
- System.Double
The right padding in points.
Top
Gets the top padding in points.
Property Value
- System.Double
The top padding in points.
Methods
Equals(Padding)
Parameters
other
- Padding
The other padding to compare with this padding instance.
Returns
Equals(Object)
Determines whether the specified System.Object is equal to this Padding instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
- System.Object
The System.Object to compare with this padding instance.
Returns
- System.Boolean
Overrides
GetHashCode()
Returns a hash code for this Padding instance.
Returns
- System.Int32
An integer value that specifies a hash value for this Padding instance.
Overrides
ToString()
Returns a System.String that represents this Padding instance.
Returns
- System.String
A System.String that represents this Padding instance.
Overrides
Operators
Equality(Padding, Padding)
Determines whether first
and second
Paddings are equal.
public static bool operator ==(Padding first, Padding second)
Public Shared Operator =(first As Padding, second As Padding) As Boolean
Parameters
first
- Padding
The first padding.
second
- Padding
The second padding.
Returns
- System.Boolean
true if first
and second
paddings are equal; otherwise, false.
Inequality(Padding, Padding)
Determines whether first
and second
Paddings are not equal.
public static bool operator !=(Padding first, Padding second)
Public Shared Operator <>(first As Padding, second As Padding) As Boolean
Parameters
first
- Padding
The first padding.
second
- Padding
The second padding.
Returns
- System.Boolean
true if first
and second
paddings are not equal; otherwise, false.