Resizes the rectangle.

 

   

Syntax
 

[C#]
virtual void Resize(double w, double h)

[Visual Basic]
Overridable Sub Resize(w As Double, h As Double)

 

   

Params
 
Name Description
w The new width.
h The new height.

 

   

Notes
 

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.

 

   

Example
 

The following code.

[C#]
XRect rc = new XRect();
rc.String = "20 20 220 120";
Response.Write("Rect = " + rc.String);
Response.Write("<br>");
rc.Resize(50, 150);
Response.Write("Pos. = " + rc.String);

[Visual Basic]
Dim rc As XRect = New XRect()
rc.String = "20 20 220 120"
Response.Write("Rect = " + rc.String)
Response.Write("<br>")
rc.Resize(50, 150)
Response.Write("Pos. = " + rc.String)

Produces the following output.

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