Stores a set of four double precision floating-point numbers that represent the location and size of a rectangle.

Namespace: BitMiracle.Docotic.Pdf
Assembly: BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[SerializableAttribute]
public struct PdfRectangle
VB
<SerializableAttribute>
Public Structure PdfRectangle

The PdfRectangle type exposes the following members.

Constructors

  NameDescription
Public methodPdfRectangle(PointF, SizeF)
Initializes a new instance of the PdfRectangle struct with the specified location and size.
Public methodPdfRectangle(PdfPoint, PdfSize)
Initializes a new instance of the PdfRectangle struct with the specified location and size.
Public methodPdfRectangle(Double, Double, Double, Double)
Initializes a new instance of the PdfRectangle struct with the specified location and size.
Public methodPdfRectangle(Single, Single, Single, Single)
Initializes a new instance of the PdfRectangle struct with the specified location and size.

Properties

  NameDescription
Public propertyBottom
Gets the y-coordinate that is the sum of PdfRectangle.Y and PdfRectangle.Height of this PdfRectangle structure.
Public propertyHeight
Gets or sets the height of this PdfRectangle structure.
Public propertyIsEmpty
Tests whether the PdfRectangle.Width or PdfRectangle.Height property of this PdfRectangle has a value of zero.
Public propertyLeft
Gets the x-coordinate of the left edge of this PdfRectangle structure.
Public propertyLocation
Gets or sets the coordinates of the upper-left corner of this PdfRectangle structure.
Public propertyRight
Gets the x-coordinate that is the sum of PdfRectangle.X and PdfRectangle.Width of this PdfRectangle structure.
Public propertySize
Gets or sets the size of this PdfRectangle.
Public propertyTop
Gets the y-coordinate of the top edge of this PdfRectangle structure.
Public propertyWidth
Gets or sets the width of this PdfRectangle structure.
Public propertyX
Gets or sets the x-coordinate of the upper-left corner of this PdfRectangle structure.
Public propertyY
Gets or sets the y-coordinate of the upper-left corner of this PdfRectangle structure.

Methods

  NameDescription
Public methodContains(PointF)
Determines if the specified point is contained within this PdfRectangle structure.
Public methodContains(RectangleF)
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle structure.
Public methodContains(PdfPoint)
Determines if the specified point is contained within this PdfRectangle structure.
Public methodContains(PdfRectangle)
Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle structure.
Public methodContains(Double, Double)
Determines if the specified point is contained within this PdfRectangle structure.
Public methodContains(Single, Single)
Determines if the specified point is contained within this PdfRectangle structure.
Public methodEquals
Tests whether obj is a PdfRectangle with the same location and size of this PdfRectangle.
(Overrides ValueType.Equals(Object).)
Public methodStatic memberFromLTRB(Double, Double, Double, Double)
Creates a PdfRectangle structure with upper-left corner and lower-right corner at the specified locations.
Public methodStatic memberFromLTRB(Single, Single, Single, Single)
Creates a PdfRectangle structure with upper-left corner and lower-right corner at the specified locations.
Public methodGetHashCode
Gets the hash code for this PdfRectangle structure.
(Overrides ValueType.GetHashCode().)
Public methodGetType (Inherited from Object.)
Public methodInflate(SizeF)
Inflates this PdfRectangle by the specified amount.
Public methodInflate(PdfSize)
Inflates this PdfRectangle by the specified amount.
Public methodInflate(Double, Double)
Inflates this PdfRectangle by the specified amount.
Public methodInflate(Single, Single)
Inflates this PdfRectangle by the specified amount.
Public methodStatic memberInflate(PdfRectangle, Double, Double)
Creates and returns an inflated copy of the specified PdfRectangle structure. The copy is inflated by the specified amount. The original rectangle remains unmodified.
Public methodIntersect(RectangleF)
Replaces this PdfRectangle structure with the intersection of itself and the specified RectangleF structure.
Public methodIntersect(PdfRectangle)
Replaces this PdfRectangle structure with the intersection of itself and the specified PdfRectangle structure.
Public methodStatic memberIntersect(PdfRectangle, PdfRectangle)
Returns a PdfRectangle structure that represents the intersection of two rectangles. If there is no intersection, an empty PdfRectangle is returned.
Public methodIntersectsWith(RectangleF)
Determines if this rectangle intersects with rect.
Public methodIntersectsWith(PdfRectangle)
Determines if this rectangle intersects with rect.
Public methodOffset(PointF)
Adjusts the location of this rectangle by the specified amount.
Public methodOffset(PdfPoint)
Adjusts the location of this rectangle by the specified amount.
Public methodOffset(Double, Double)
Adjusts the location of this rectangle by the specified amount.
Public methodOffset(Single, Single)
Adjusts the location of this rectangle by the specified amount.
Public methodToRectangleF
Converts this PdfRectangle to a RectangleF.
Public methodToString()
Converts the Location and Size of this PdfRectangle to a human-readable string.
(Overrides ValueType.ToString().)
Public methodToString(IFormatProvider)
Converts the Location and Size of this PdfRectangle to a human-readable string.
Public methodStatic memberUnion
Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

Operators

  NameDescription
Public operatorStatic memberEquality
Tests whether two PdfRectangle structures have equal location and size.
Public operatorStatic memberImplicit(Rectangle to PdfRectangle)
Performs an implicit conversion from Rectangle to PdfRectangle.
Public operatorStatic memberImplicit(RectangleF to PdfRectangle)
Performs an implicit conversion from Rectangle to PdfRectangle.
Public operatorStatic memberInequality
Tests whether two PdfRectangle structures differ in location or size.

Fields

  NameDescription
Public fieldStatic memberEmpty
Represents an instance of the PdfRectangle struct with its members uninitialized.

See Also