The rectangle as a System.Drawing Rectangle.
Windows coordinates are measured in distances from the top left
of the drawing surface while PDF coordinates are measured from the
So when you use this property the coordinates must be re-mapped.
This needs to be done in the context of a containing object.
Properties such as the Doc.Rect and the XImage.Selection have
containers but others such as the Doc.MediaBox do not. In
these cases the rectangles are assumed to contain themselves.
You may find it easier to work with .NET Rectangles than PDF
rectangles. However remember that operations such as Transforms work on the
underlying PDF coordinates and not on the abstracted Windows