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

    Show / Hide Table of Contents

    PdfPadding Struct

    Namespace:
    GemBox.Pdf
    Assembly:
    GemBox.Pdf.dll

    Represents padding or margin information.

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

    Constructors

    PdfPadding(Double, Double, Double, Double)

    Initializes a new instance of the PdfPadding structure.

    • C#
    • VB.NET
    public PdfPadding(double left, double bottom, double right, double top)
    Public Sub New(left As Double, bottom As Double, right As Double, top As Double)
    Parameters
    left
    System.Double

    The padding value for the left edge.

    bottom
    System.Double

    The padding value for the bottom edge.

    right
    System.Double

    The padding value for the right edge.

    top
    System.Double

    The padding value for the top edge.

    Properties

    Bottom

    Gets the padding value for the bottom edge.

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

    The padding value for the bottom edge.

    Left

    Gets the padding value for the left edge.

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

    The padding value for the left edge.

    Right

    Gets the padding value for the right edge.

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

    The padding value for the right edge.

    Top

    Gets the padding value for the top edge.

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

    The padding value for the top edge.

    Methods

    Equals(PdfPadding)

    Determines whether the other PdfPadding is equal to this PdfPadding instance.

    • C#
    • VB.NET
    public bool Equals(PdfPadding other)
    Public Function Equals(other As PdfPadding) As Boolean
    Parameters
    other
    PdfPadding

    The other padding to compare with this padding instance.

    Returns
    System.Boolean

    true if the other PdfPadding is equal to this PdfPadding instance; otherwise, false.

    Equals(Object)

    Determines whether the specified System.Object is equal to this PdfPadding 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 PdfPadding and is equal to this PdfPadding instance; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this PdfPadding 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 PdfPadding instance.

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this PdfPadding instance.

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

    A System.String that represents this PdfPadding instance.

    Overrides
    System.ValueType.ToString()
    Remarks

    This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).

    Operators

    Equality(PdfPadding, PdfPadding)

    Determines whether first and second PdfPaddings are equal.

    • C#
    • VB.NET
    public static bool operator ==(PdfPadding first, PdfPadding second)
    Public Shared Operator =(first As PdfPadding, second As PdfPadding) As Boolean
    Parameters
    first
    PdfPadding

    The first padding.

    second
    PdfPadding

    The second padding.

    Returns
    System.Boolean

    true if first and second paddings are equal; otherwise, false.

    Inequality(PdfPadding, PdfPadding)

    Determines whether first and second PdfPaddings are not equal.

    • C#
    • VB.NET
    public static bool operator !=(PdfPadding first, PdfPadding second)
    Public Shared Operator <>(first As PdfPadding, second As PdfPadding) As Boolean
    Parameters
    first
    PdfPadding

    The first padding.

    second
    PdfPadding

    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.