Table of Contents

Struct PdfRectangle

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

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

public struct PdfRectangle : IEquatable<PdfRectangle>
Implements
Inherited Members

Constructors

PdfRectangle(PdfPoint, PdfSize)

Initializes a new instance of the PdfRectangle struct with the specified location and size.

PdfRectangle(double, double, double, double)

Initializes a new instance of the PdfRectangle struct with the specified location and size.

PdfRectangle(float, float, float, float)

Initializes a new instance of the PdfRectangle struct with the specified location and size.

Fields

Empty

Represents an instance of the PdfRectangle struct with its members uninitialized.

Properties

Bottom

Gets the y-coordinate that is the sum of PdfRectangle.Y and PdfRectangle.Height of this PdfRectangle structure.

Height

Gets or sets the height of this PdfRectangle structure.

IsEmpty

Tests whether the PdfRectangle.Width or PdfRectangle.Height property of this PdfRectangle has a value of zero.

Left

Gets the x-coordinate of the left edge of this PdfRectangle structure.

Location

Gets or sets the coordinates of the upper-left corner of this PdfRectangle structure.

Right

Gets the x-coordinate that is the sum of PdfRectangle.X and PdfRectangle.Width of this PdfRectangle structure.

Size

Gets or sets the size of this PdfRectangle.

Top

Gets the y-coordinate of the top edge of this PdfRectangle structure.

Width

Gets or sets the width of this PdfRectangle structure.

X

Gets or sets the x-coordinate of the upper-left corner of this PdfRectangle structure.

Y

Gets or sets the y-coordinate of the upper-left corner of this PdfRectangle structure.

Methods

Contains(PdfPoint)

Determines if the specified point is contained within this PdfRectangle structure.

Contains(PdfRectangle)

Determines if the rectangular region represented by rect is entirely contained within this PdfRectangle structure.

Contains(double, double)

Determines if the specified point is contained within this PdfRectangle structure.

Contains(float, float)

Determines if the specified point is contained within this PdfRectangle structure.

Equals(PdfRectangle)

Tests whether other has the location and size of this PdfRectangle.

Equals(object)

Tests whether obj is a PdfRectangle with the same location and size of this PdfRectangle.

FromLTRB(double, double, double, double)

Creates a PdfRectangle structure with upper-left corner and lower-right corner at the specified locations.

FromLTRB(float, float, float, float)

Creates a PdfRectangle structure with upper-left corner and lower-right corner at the specified locations.

GetHashCode()

Gets the hash code for this PdfRectangle structure.

Inflate(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.

Inflate(PdfSize)

Inflates this PdfRectangle by the specified amount.

Inflate(double, double)

Inflates this PdfRectangle by the specified amount.

Inflate(float, float)

Inflates this PdfRectangle by the specified amount.

Intersect(PdfRectangle)

Replaces this PdfRectangle structure with the intersection of itself and the specified PdfRectangle structure.

Intersect(PdfRectangle, PdfRectangle)

Returns a PdfRectangle structure that represents the intersection of two rectangles. If there is no intersection, an empty PdfRectangle is returned.

IntersectsWith(PdfRectangle)

Determines if this rectangle intersects with rect.

Offset(PdfPoint)

Adjusts the location of this rectangle by the specified amount.

Offset(double, double)

Adjusts the location of this rectangle by the specified amount.

Offset(float, float)

Adjusts the location of this rectangle by the specified amount.

ToString()

Converts the Location and Size of this PdfRectangle to a human-readable string.

ToString(IFormatProvider)

Converts the Location and Size of this PdfRectangle to a human-readable string.

Union(PdfRectangle, PdfRectangle)

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

Operators

operator ==(PdfRectangle, PdfRectangle)

Tests whether two PdfRectangle structures have equal location and size.

operator !=(PdfRectangle, PdfRectangle)

Tests whether two PdfRectangle structures differ in location or size.