PdfRectangle ClassTerminal Works - PDF Printing.Net Library
Represents a PDF rectangle value, that is internally an array with 4 real values.
Inheritance Hierarchy

SystemObject
  PdfEdit.PdfPdfItem
    PdfEdit.PdfPdfRectangle

Namespace: PdfEdit.Pdf
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax

public sealed class PdfRectangle : PdfItem

The PdfRectangle type exposes the following members.

Constructors

  NameDescription
Public methodPdfRectangle
Initializes a new instance of the PdfRectangle class.
Public methodPdfRectangle(XRect)
Initializes a new instance of the PdfRectangle class with the specified XRect.
Public methodPdfRectangle(PointF, PointF)
Initializes a new instance of the PdfRectangle class with two points specifying two diagonally opposite corners.
Public methodPdfRectangle(PointF, SizeF)
Initializes a new instance of the PdfRectangle class with the specified location and size.
Public methodPdfRectangle(XPoint, XPoint)
Initializes a new instance of the PdfRectangle class with two points specifying two diagonally opposite corners.
Public methodPdfRectangle(XPoint, XSize)
Initializes a new instance of the PdfRectangle class with the specified location and size.
Top
Methods

  NameDescription
Public methodClone
Clones this instance.
Public methodContains(PointF)
Determines if the specified point is contained within this PdfRectangle.
Public methodContains(RectangleF)
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle.
Public methodContains(PdfRectangle)
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle.
Public methodContains(XPoint)
Determines if the specified point is contained within this PdfRectangle.
Public methodContains(XRect)
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle.
Public methodContains(Double, Double)
Determines if the specified point is contained within this PdfRectangle.
Public methodEquals
Tests whether the specified object is a PdfRectangle and has equal coordinates.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the rectangle as a string in the form «[x1 y1 x2 y2]».
(Overrides ObjectToString.)
Public methodToXRect
Returns the rectangle as an XRect object.
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Tests whether two structures have equal coordinates.
Public operatorStatic memberInequality
Tests whether two structures differ in one or more coordinates.
Top
Fields

  NameDescription
Public fieldStatic memberEmpty
Represents an empty PdfRectangle.
Top
Properties

  NameDescription
Public propertyHeight
Gets Y2 - Y1.
Public propertyIsEmpty
Tests whether all coordinate are zero.
Public propertyLocation
Gets or sets the coordinates of the first point of this PdfRectangle.
Public propertySize
Gets or sets the size of this PdfRectangle.
Public propertyWidth
Gets X2 - X1.
Public propertyX1
Gets or sets the x-coordinate of the first corner of this PdfRectangle.
Public propertyX2
Gets or sets the x-coordinate of the second corner of this PdfRectangle.
Public propertyY1
Gets or sets the y-coordinate of the first corner of this PdfRectangle.
Public propertyY2
Gets or sets the y-coordinate of the second corner of this PdfRectangle.
Top
See Also

Reference