GemBox.Document
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    RelativePadding Struct

    Namespace:
    GemBox.Document
    Assembly:
    GemBox.Document.dll

    Represents the relative space between the element border and the element content.

    • C#
    • VB.NET
    public struct RelativePadding : IEquatable<RelativePadding>
    Public Structure RelativePadding
        Implements IEquatable(Of RelativePadding)
    Implements
    System.IEquatable<RelativePadding>

    Constructors

    RelativePadding(Double)

    Initializes a new instance of the RelativePadding struct with specified left/top/right/bottom padding percentage.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public static readonly RelativePadding None
    Public Shared ReadOnly None As RelativePadding
    Field Value
    RelativePadding

    Properties

    Bottom

    Gets the bottom padding percentage.

    • C#
    • VB.NET
    public readonly double Bottom { get; }
    Public ReadOnly Property Bottom As Double
    Property Value
    System.Double

    The bottom padding percentage.

    Remarks

    Value 0 represents 0% while value 1 represents 100%.

    Left

    Gets the left padding percentage.

    • C#
    • VB.NET
    public readonly double Left { get; }
    Public ReadOnly Property Left As Double
    Property Value
    System.Double

    The left padding percentage.

    Remarks

    Value 0 represents 0% while value 1 represents 100%.

    Right

    Gets the right padding percentage.

    • C#
    • VB.NET
    public readonly double Right { get; }
    Public ReadOnly Property Right As Double
    Property Value
    System.Double

    The right padding percentage.

    Remarks

    Value 0 represents 0% while value 1 represents 100%.

    Top

    Gets the top padding percentage.

    • C#
    • VB.NET
    public readonly double Top { get; }
    Public ReadOnly Property Top As Double
    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.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this RelativePadding instance.

    • C#
    • VB.NET
    public override int GetHashCode()
    Public Overrides Function GetHashCode As Integer
    Returns
    System.Int32

    An integer value that specifies a hash value for this RelativePadding instance.

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this RelativePadding instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this RelativePadding instance.

    Overrides
    System.ValueType.ToString()

    Operators

    Equality(RelativePadding, RelativePadding)

    Determines whether first and second RelativePaddings are equal.

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    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.

    Implements

    System.IEquatable<T>
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.