Resizes the rectangle.




XRect.Resize W, H



Name Type Description
W Double The new width.
H Double The new height.




Changes the width and height of the rectangle while maintaining the position.

When you change the width or height of a rectangle, one corner of the rectangle is pinned to maintain position. The corner which is pinned is indicated by the Pin property. The default pin corner is the bottom left.




The following code.

Set rc = Server.CreateObject("ABCpdf10.XRect")
rc.String = "20 20 220 120"
Response.Write "Rect = " & rc
Response.Write "<br>"
rc.Resize 50, 150
Response.Write "Pos. = " & rc

Produces the following output.

Rect = 20 20 220 120
Pos. = 20 20 70 170