Position the bottom left of the rectangle.

 

   

Syntax
 

[C#]
virtual void Position(double x, double y)

[Visual Basic]
Overridable Sub Position(x As Double, y As Double)

 

   

Params
 
Name Description
x The new left position.
y The new bottom position.

 

   

Notes
 

Moves the rectangle to the supplied position while maintaining the width and height. The corner moved to the location 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.Position(50, 50);
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.Position(50, 50)
Response.Write("Pos. = " + rc.String)

Produces the following output.

Rect = 20 20 220 120
Pos. = 50 50 250 150