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

    Show / Hide Table of Contents

    Padding Struct

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

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

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

    Constructors

    Padding(Double)

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

    • C#
    • VB.NET
    public Padding(double leftTopRightBottom)
    Public Sub New(leftTopRightBottom As Double)
    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.

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

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

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

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

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

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

    Properties

    Bottom

    Gets the bottom padding in points.

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

    The bottom padding in points.

    Left

    Gets the left padding in points.

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

    The left padding in points.

    Right

    Gets the right padding in points.

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

    The right padding in points.

    Top

    Gets the top padding in points.

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

    The top padding in points.

    Methods

    Equals(Padding)

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

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

    The other padding to compare with this padding instance.

    Returns
    System.Boolean

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

    Equals(Object)

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

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

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

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this Padding instance.

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

    A System.String that represents this Padding instance.

    Overrides
    System.ValueType.ToString()

    Operators

    Equality(Padding, Padding)

    Determines whether first and second Paddings are equal.

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

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

    Implements

    System.IEquatable<T>
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.