Rectangle Class
Class represents rectangle.
Inheritance Hierarchy

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.6
public sealed class Rectangle : ICloneable

The Rectangle type exposes the following members.

Public methodRectangle
Constructor of Rectangle.
Public propertyHeight
Height of rectangle.
Public propertyIsEmpty
Checks if rectangle is empty.
Public propertyIsPoint
Checks if rectangle is point i.e. LLX is equal URX and LLY is equal URY.
Public propertyIsTrivial
Checks if rectangle is trivial i.e. has zero size and position.
Public propertyLLX
X-coordinate of lower - left corner.
Public propertyLLY
Y - coordinate of lower-left corner.
Public propertyStatic memberTrivial
Initializes trivial rectangle i.e. rectangle with zero position and size.
Public propertyURX
X - coordinate of upper-right corner.
Public propertyURY
Y - coordinate of upper-right corner.
Public propertyWidth
Width of rectangle.
Public methodCenter
Returncs coordinates of center of the rectangle.
Public methodClone
Clones the Rectangle object.
Public methodContains
Determinces whether given point is inside of the rectangle.
Public methodEquals(Object) (Inherited from Object.)
Public methodEquals(Rectangle)
Check if rectangles are equal i.e. have same position and sizes.
Public methodStatic memberFromRect
Initializes new rectangle from given instance of System.Drawing.Rectangle.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIntersect
Intersects to rectangles.
Public methodIsIntersect
Determines whether this rectangle intersects with other rectangle.
Public methodJoin
Joins rectangles.
Public methodNearEquals
Check if rectangles are near equal i.e. have near same (up to delta) position and sizes.
Public methodStatic memberParse
Try to parse string and extract from it rectangle components llx, lly, urx, ury.
Public methodRotate(Int32)
Rotate rectangle by the specified angle.
Public methodRotate(Rotation)
Rotate rectangle by the specified angle.
Public methodToRect
Converts rectangle to instance of System.Drawing.Rectangle. Floating-point positions and size are truncated.
Public methodToString
Gets rectangle string representation.
(Overrides ObjectToString.)
Public fieldStatic memberEmpty
Empty rectangle
See Also