PDFDisplayRectangle¶
Namespace: O2S.Components.PDF4NET.Graphics
Defines a rectangle relative to top left corner of the page.
Inheritance Object → PDFDisplayRectangle
Constructors¶
PDFDisplayRectangle()¶
Initializes a new PDFDisplayRectangle object.
PDFDisplayRectangle(Double, Double, Double, Double)¶
Initializes a new PDFDisplayRectangle object.
Parameters
left Double
The x coordinate of the rectangle's top left corner.
top Double
The y coordinate of the rectangle's top left corner.
width Double
The rectangle width.
height Double
The rectangle height.
PDFDisplayRectangle(PDFDisplayRectangle)¶
Initializes a new PDFDisplayRectangle object.
Parameters
source PDFDisplayRectangle
Source visual rectangle;
Properties¶
Height¶
Gets or sets the height.
Property Value
Double
The rectangle height.
Left¶
Gets or sets left position.
Property Value
Double
The x coordinate of rectangle's top left corner.
Top¶
Gets or sets top position.
Property Value
Double
The y coordinate of rectangle's top left corner.
Width¶
Gets or sets the width.
Property Value
Double
The rectangle width.
Methods¶
Equals(Object)¶
Checks if this rectangle is equal to another rectangle.
Parameters
obj Object
Returns
GetHashCode()¶
Returns
IntersectsWith(PDFDisplayRectangle)¶
Determines if this rectangle intersects with visualRectangle.
Parameters
visualRectangle PDFDisplayRectangle
The rectangle to test.
Returns
Boolean
This method returns true if there is any intersection.
IsPointInRectangle(PDFPoint)¶
Tests if the given point is located inside the rectangle.
Parameters
point PDFPoint
The point.
Returns
Boolean
True if the point is located inside the rectangle, false otherwise.
IsPointInRectangle(Double, Double)¶
Tests if the given point is located inside the rectangle.
Parameters
x Double
The x coordinate.
y Double
The y coordinate.
Returns
Boolean
True if the point is located inside the rectangle, false otherwise.
ToString()¶
Returns a String that represents the current Object.
Returns
String
String that represents the current Object.
Union(PDFDisplayRectangle)¶
Performs a union operation between this object and the given rectangle.
Parameters
rect PDFDisplayRectangle
The rectangle to union.