Click or drag to resize

PdfRectangle Class

Class represents a rectangular region in PDF world coordinates. The rectangle is kept normalized.
Inheritance Hierarchy
SystemObject
  Opait.Pdf.ApiPdfRectangle

Namespace:  Opait.Pdf.Api
Assembly:  Opait.Pdf.Api (in Opait.Pdf.Api.dll) Version: 1.3.3.0
Syntax
C#
public class PdfRectangle : IEquatable<PdfRectangle>

The PdfRectangle type exposes the following members.

Constructors
  NameDescription
Public methodPdfRectangle
Initializes a new instance of the PdfRectangle class.
Public methodPdfRectangle(IReadOnlyListPdfRectangle)
Initializes a new instance of the PdfRectangle as the union of the specified list of rectangles.
Public methodPdfRectangle(PdfRectangle)
Initializes a new instance as a copy of the specified PdfRectangle.
Public methodPdfRectangle(XElement, Int32)
Initializes a new instance of the PdfRectangle class from a serialized XML element.
Public methodPdfRectangle(Double, Double, Double, Double)
Initializes a new instance of the PdfRectangle class with specified coordinates.
Top
Properties
  NameDescription
Public propertyAngle
Gets or sets the rotation angle, counterclockwise, in degrees. Supported values are 0, 90 and 270. Used in text processing.
Public propertyBottomLeft
Gets the bottom-left point of the rectangle.
Public propertyBottomRight
Gets the bottom-right point of the rectangle.
Public propertyCenter
Gets the center point of the rectangle.
Public propertyHeight
Gets the height of the rectangle.
Public propertyIsEmpty
Gets a flag to indicate an empty rectangle within a tolerance.
Public propertyIsNormalized
Gets a flag to indicate whether the rectangle is normalized.
Public propertyIsVertical
Gets a flag to indicate whether the character is vertically rotated.
Public propertyTopLeft
Gets the top-left point of the rectangle.
Public propertyTopRight
Gets the top-right point of the rectangle.
Public propertyWidth
Gets the width of the rectangle.
Public propertyX
The X coordinate or the rectangle (bottom-left corner).
Public propertyY
The Y coordinate or the rectangle (bottom-left corner).
Top
Methods
  NameDescription
Public methodStatic memberCenterComparer
Compares centers of rectangles for top-down, left-right sorting.
Public methodContains(PdfPoint)
Determines if the rectangle contains the specified point.
Public methodContains(PdfRectangle)
Determines if the current rectangle contains the specified rectangle.
Public methodContainsOrIntersects
Determines if the current rectangle contains or intersects the specified rectangle.
Public methodCopyFrom
Copy coordinates, BUT NOT THE ANGLE, from another instance of PdfRectangle.
Public methodDeflate
Deflates the rectangle by specified size in each direction.
Public methodEquals(Object)
Compares this instance to the specified object.
(Overrides ObjectEquals(Object).)
Public methodEquals(PdfRectangle)
Compares this instance to the specified instance.
Public methodEquals(PdfRectangle, Double)
Compares this instance to the specified other instance for approximate equality within the given tolerance.
Public methodFromXml
Initializes a new instance from a serialized XML element.
Public methodGetHashCode
Gets a custom hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodHorizontalOverlap
Computes relative horizontal overlap with another rectangle.
Public methodHorizontalOverlaps
Checks whether this rectangle has a horizontal overlap with another rectangle.
Public methodInflate
Inflates the rectangle by specified size in each direction.
Public methodIntersect
Make this object the intersection of itself with a specified rectangle.
Public methodIntersects
Checks whether this rectangle intersects with the specified rectangle.
Public methodNormalize
Normalizes the rectangle so that Right >= Left and Top >= Bottom.
Public methodRotate
Rotate rectangle counterclockwise about the origin of the page where it is defined in 90 degree intervals.
Public methodSetEmpty
Set this object to an empty rectangle with zero sides.
Public methodToArray
Converts coordinates to an array of double precision numbers.
Public methodToString
Converts this object to a human-readable string.
(Overrides ObjectToString.)
Public methodToXml
Serializes the current instance as an XML element.
Public methodUnion
Merges the specified rectangle into the current one.
Public methodVerticalOverlap
Computes relative vertical overlap with another rectangle.
Public methodVerticalOverlaps
Checks whether this rectangle has a vertical overlap with another rectangle.
Top
Fields
  NameDescription
Public fieldBottom
The bottom coordinate of the rectangle.
Public fieldStatic memberEmpty
Represents a PdfRect that has coordinates set to zero.
Public fieldLeft
The left coordinate of the rectangle.
Public fieldRight
The right coordinate of the rectangle.
Public fieldTop
The top coordinate of the rectangle.
Top
See Also