Click or drag to resize

PdfQuadrilateral Class

This class represents a four-sided polygon. It is typically used in marking text on the page. For drawing order purposes, if the quadrilateral is a rectangle on the page, P0 is the lower-left corner, P1 is the lower-right corner, P2 is the upper right corner, and P3 is the upper-left corner. Misordering the points may result in the shape being rendered upside down or as a bow-tie.
Inheritance Hierarchy
SystemObject
  Atalasoft.PdfDoc.GeometryPdfQuadrilateral

Namespace:  Atalasoft.PdfDoc.Geometry
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class PdfQuadrilateral

The PdfQuadrilateral type exposes the following members.

Constructors
  NameDescription
Public methodPdfQuadrilateral
Initializes a new empty instance of the PdfQuadrilateral class.
Public methodPdfQuadrilateral(PdfBounds)
Initializes a new instance of the PdfQuadrilateral class using the supplied bounds.
Public methodPdfQuadrilateral(PdfQuadrilateral)
Initializes a new instance of the PdfQuadrilateral class copying from the supplied quadrilateral.
Public methodPdfQuadrilateral(PdfPoint, PdfPoint, PdfPoint, PdfPoint)
Initializes a new instance of the PdfQuadrilateral class.
Public methodPdfQuadrilateral(Double, Double, Double, Double, Double, Double, Double, Double)
Initializes a new instance of the PdfQuadrilateral class using the eight values.
Top
Properties
  NameDescription
Public propertyStatic memberEmpty
Gets an empty quadrilateral.
Public propertyItem
Gets or sets the PdfPoint at the specified index. Index may be 0-3 inclusive.
Public propertyP0
Gets or sets the Point 0.
Public propertyP1
Gets or sets the Point 1.
Public propertyP2
Gets or sets the Point 2.
Public propertyP3
Gets or sets the Point 3.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsConcave
Determines whether this quadrilateral is concave. A quadrilateral is concave if it is simple and if it is not convex.
Public methodIsConvex
Determines whether this quadrilateral is convex. A quadrilateral is convex if it is not empty and if its diagonals cross.
Public methodIsEmpty
Determines whether this quadrilateral is empty.
Public methodIsRectangular
Determines whether this quadrilateral is rectangular. Note that this test checks to see if the diagonals are equal and the shape is convex, therefore it is correct regardless of rotation.
Public methodIsSimple
Determines whether this quadrilateral is convex. A quadrilateral is simple if it is not empty and if its edges do not cross.
Public methodLowerBound
Gets the lower bound of the quadrilateral.
Public methodLowerBound(PdfPoint)
Public methodMaxX
Gets the maximum of all X coordinates.
Public methodMaxY
Gets the maximum of all Y coordinates.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMinX
Gets the minimum of all X coordinates.
Public methodMinY
Gets the minimum of all Y coordinates.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpperBound
Gets the upper bound of the quadrilateral.
Public methodUpperBound(PdfPoint)
Top
See Also