Rectangle & RectangleF IronDrawing provides two classes that allow you to draw a rectangle at particular coordinates: IronSoftware.Drawing.Rectangle and IronSoftware.Drawing.RectangleF. These classes contain a set of four parameters that represent the location and size of the rectangle drawn. These classes take x and y coordinates from the top-left corner of the rectangle. The Rectangle class uses int types for these coordinates, while the RectangleF class uses float types. The last two parameters represent the width and height of the rectangle, using the same data types as indicated for the x and y coordinate parameters. The default unit for both classes is pixels. Related Docs Links View on Github Related Tutorial Related How-To Guide Class Documentation Download IronDrawing DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 15,421,227 | Version: 2025.3 just released Start Free Trial Free NuGet Download Total downloads: 15,421,227 View Licenses Still Scrolling? Want proof fast? PM > Install-Package IronSoftware.System.Drawing run a sample watch your HTML become a PDF. Free NuGet Download Total downloads: 15,421,227 View Licenses
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)