Add a rectangle to the current page.




int AddRect(bool filled)

[Visual Basic]
Function AddRect(filled As Boolean) As Integer



Name Description
filled Whether to fill the rectangle rather than simply outline it.
return The Object ID of the newly added Graphic Object.




Add a rectangle drawn in the current color at the current width and with the current options. The rectangle may be outlined or filled.

Note that this is subtly different from the way that FrameRect works. When a rectangle is framed the line goes around the outside of the rectangle. When a rectangle is added the line is centered on the rectangle - so half is inside and half is outside.