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

    Show / Hide Table of Contents

    PdfQuad Struct

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

    Represents a quadrilateral - a polygon with four edges (sides) and four vertices (corners).

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

    Constructors

    PdfQuad(PdfPoint, PdfPoint, PdfPoint, PdfPoint)

    Initializes a new instance of the PdfQuad structure.

    • C#
    • VB.NET
    public PdfQuad(PdfPoint point0, PdfPoint point1, PdfPoint point2, PdfPoint point3)
    Public Sub New(point0 As PdfPoint, point1 As PdfPoint, point2 As PdfPoint, point3 As PdfPoint)
    Parameters
    point0
    PdfPoint

    The first point of the quadrilateral.

    point1
    PdfPoint

    The second point of the quadrilateral.

    point2
    PdfPoint

    The third point of the quadrilateral.

    point3
    PdfPoint

    The fourth point of the quadrilateral.

    PdfQuad(Double, Double, Double, Double)

    Initializes a new instance of the PdfQuad structure from the sides of the quadrilateral.

    • C#
    • VB.NET
    public PdfQuad(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 x-axis value of the left side of the quadrilateral that specifies the X-coordinate value of the Point0 and Point3 of the quadrilateral.

    bottom
    System.Double

    The y-axis value of the bottom of the quadrilateral that specifies the Y-coordinate value of the Point0 and Point1 of the quadrilateral.

    right
    System.Double

    The x-axis value of the right side of the quadrilateral that specifies the X-coordinate value of the Point1 and Point2 of the quadrilateral.

    top
    System.Double

    The y-axis position of the top of the quadrilateral that specifies the Y-coordinate value of the Point2 and Point3 of the quadrilateral.

    Exceptions
    System.ArgumentException

    left, bottom, right or top is either System.Double.NaN, System.Double.NegativeInfinity or System.Double.PositiveInfinity.

    Properties

    Bottom

    Gets the y-axis value of the bottom of the quadrilateral.

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

    The y-axis value of the bottom of the quadrilateral.

    Left

    Gets the x-axis value of the left side of the quadrilateral.

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

    The x-axis value of the left side of the quadrilateral.

    Point0

    Gets the first point of the quadrilateral.

    • C#
    • VB.NET
    public readonly PdfPoint Point0 { get; }
    Public ReadOnly Property Point0 As PdfPoint
    Property Value
    PdfPoint

    The first point of the quadrilateral.

    Point1

    Gets the second point of the quadrilateral.

    • C#
    • VB.NET
    public readonly PdfPoint Point1 { get; }
    Public ReadOnly Property Point1 As PdfPoint
    Property Value
    PdfPoint

    The second point of the quadrilateral.

    Point2

    Gets the third point of the quadrilateral.

    • C#
    • VB.NET
    public readonly PdfPoint Point2 { get; }
    Public ReadOnly Property Point2 As PdfPoint
    Property Value
    PdfPoint

    The third point of the quadrilateral.

    Point3

    Gets the fourth point of the quadrilateral.

    • C#
    • VB.NET
    public readonly PdfPoint Point3 { get; }
    Public ReadOnly Property Point3 As PdfPoint
    Property Value
    PdfPoint

    The fourth point of the quadrilateral.

    Right

    Gets the x-axis value of the right side of the quadrilateral.

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

    The x-axis value of the right side of the quadrilateral.

    Top

    Gets the y-axis position of the top of the quadrilateral.

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

    The y-axis position of the top of the quadrilateral.

    Methods

    Equals(PdfQuad)

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

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

    The other quadrilateral to compare with this quadrilateral instance.

    Returns
    System.Boolean

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

    Equals(Object)

    Determines whether the specified System.Object is equal to this PdfQuad 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 quadrilateral instance.

    Returns
    System.Boolean

    true if the specified System.Object is a PdfQuad and is equal to this PdfQuad instance; otherwise, false.

    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

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

    Overrides
    System.ValueType.GetHashCode()

    ToString()

    Returns a System.String that represents this PdfQuad instance.

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

    A System.String that represents this PdfQuad 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(PdfQuad, PdfQuad)

    Determines whether first and second PdfQuads are equal.

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

    The first quadrilateral.

    second
    PdfQuad

    The second quadrilateral.

    Returns
    System.Boolean

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

    Inequality(PdfQuad, PdfQuad)

    Determines whether first and second PdfQuads are not equal.

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

    The first quadrilateral.

    second
    PdfQuad

    The second quadrilateral.

    Returns
    System.Boolean

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

    Implements

    System.IEquatable<T>

    See Also

    Quadrilateral
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.