Type   Default Value   Read Only   Description
String "0,0,0,0" No The rect as a string

 

   
Notes
 
     

Allows you to get or set a rect using a string.

The format of the string must be left, top, right, bottom.

 

   
See Also
 
     

None.

 

   
Example
 
     

[VBScript]
Set myrect = Server.CreateObject("ImageGlue7.XRect")
myrect.String = "10,10,200,100"
Response.Write("Top = " & myrect.Top & "<br>")
Response.Write("Right = " & myrect.Right & "<br>")
Response.Write("Bottom = " & myrect.Bottom & "<br>")
Response.Write("Left = " & myrect.Left & "<br>")
Response.Write("TopLeft = " & myrect.TopLeft & "<br>")
Response.Write("BottomRight = " & myrect.BottomRight & "<br>")
Response.Write("Width = " & myrect.Width & "<br>")
Response.Write("Height = " & myrect.Height & "<br>")

This produces the following output.

Top = 10
Right = 200
Bottom = 100
Left = 10
TopLeft = 10,10
BottomRight = 200,100
Width = 190
Height = 90