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