Rect Class Documentation
classRect : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
Detailed Description
A rect holds four coordinates for a rectangle.
The coordinates for a rectangle include left, top, right, bottom. Width () and height () defines the rectangle's width and height. LLx and LLy defines lower left corner, and URx and URy defines the upper right corner.
Referenced by
Constructor & Destructor Documentation
Rect
Rect(Rectrhs, InternalConstructsignifier)Parameters
rhs: Rectsignifier: InternalConstruct
Rect
Rect()Create a rectangle with all values zero.
Rect
Rect(doublenLLx, doublenLLy, doublenURx, doublenURy)Parameters
nLLx: doublethe X coordinate of the lower left corner of the rectangle
nLLy: doublethe Y coordinate of the lower left corner of the rectangle
nURx: doublethe X coordinate of the upper right corner of the rectangle
nURy: doublethe Y coordinate of the upper right corner of the rectangle
Create a Rect.
Rect
Rect(System.Drawing.Rectangler)Parameters
r: System.Drawing.RectangleThe rectangle to convert
Construct a Rect from a System.Drawing.Rectangle
Note that the coordinate systems are inverted for PDFL. Smaller X/Y values are assigned to the lower left coordinate.
Rect
Rect(System.Drawing.RectangleFr)Parameters
r: System.Drawing.RectangleFThe rectangle to convert
Construct a Rect from a System.Drawing.RectangleF
Note that the coordinate systems are inverted for PDFL. Smaller X/Y values are assigned to the lower left coordinate.
~Rect
~Rect()Property Documentation
Bottom
doubleBottom[get, set]Height
doubleHeight[get]LLx
doubleLLx[get, set]the X coordinate of the lower left corner of the rectangle
LLy
doubleLLy[get, set]the Y coordinate of the lower left corner of the rectangle
Left
doubleLeft[get, set]Right
doubleRight[get, set]RoundedHeight
intRoundedHeight[get]RoundedWidth
intRoundedWidth[get]Top
doubleTop[get, set]URx
doubleURx[get, set]the X coordinate of the upper right corner of the rectangle
URy
doubleURy[get, set]the Y coordinate of the upper right corner of the rectangle
Width
doubleWidth[get]Member Function Documentation
ConstructorRetrieve
static RectConstructorRetrieve(System.IntPtrignored)Parameters
ignored: System.IntPtr
Returns:
RectDispose
voidDispose()Returns:
voidDisposeChildren
voidDisposeChildren()Returns:
voidEquals
override boolEquals(objectobj)Parameters
obj: object
Returns:
override boolInRect
boolInRect(Rectr2)Parameters
r2: RectThe rectangle to test containment against.
Returns:
true if this rectangle is entirely inside r2, false otherwise.Check if this rectangle is inside the parameter rectangle.
Intersect
Parameters
r2: RectThe other rectangle to intersect with.
Returns:
A new Rect representing the intersection of the two rectangles.Obtain the intersection of this rectangle and another rectangle.
IsEmpty
boolIsEmpty()Returns:
true if the rectangle is empty, false otherwise.Check if this rectangle is empty.
A rectangle is considered empty if its width or height is zero.
Overlaps
boolOverlaps(Rectr2)Parameters
r2: RectThe other rectangle to test for overlap.
Returns:
true if the two rectangles overlap, false otherwise.Check if two rectangles overlap.
SameTypeEquals
boolSameTypeEquals(Rectrhs)Parameters
rhs: Rect
Returns:
boolToString
override stringToString()Returns:
A string describing the rectangle coordinates in the form "[ LLx=..., LLy=..., URx=..., URy=... ]".Convert the Rect to a human-readable string representation.
Transform
Parameters
arg0: Matrix
Returns:
A new Rect with the transformed coordinates.Transform the coordinates of the rectangle by the given Matrix Object.
operator Rect
static implicitoperator Rect(System.Drawing.Rectangler)Parameters
r: System.Drawing.RectangleThe rectangle to convert
Returns:
implicitConvert a System.Drawing.Rectangle to a Rect
Note that the coordinate systems are inverted for PDFL. Smaller X/Y values are assigned to the lower left coordinate.
operator Rect
static implicitoperator Rect(System.Drawing.RectangleFr)Parameters
r: System.Drawing.RectangleFThe rectangle to convert
Returns:
implicitConvert a System.Drawing.RectangleF to a Rect
Note that the coordinate systems are inverted for PDFL. Smaller X/Y values are assigned to the lower left coordinate.