Type Default Value Read Only Static Description
String "0,0,0,0" No No The rectangle as a string.
Notes

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

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

Example

[C#]XRect rect = new XRect();
rect.String = "10,10,200,100";
Response.Write("Top = " + rect.Top.ToString() + "<br>");
Response.Write("Right = " + rect.Right.ToString() + "<br>");
Response.Write("Bottom = " + rect.Bottom.ToString() + "<br>");
Response.Write("Left = " + rect.Left.ToString() + "<br>");
Response.Write("TopLeft = " + rect.TopLeft + "<br>");
Response.Write("BottomRight = " + rect.BottomRight + "<br>");
Response.Write("Width = " + rect.Width.ToString() + "<br>");
Response.Write("Height = " + rect.Height.ToString() + "<br>");


[Visual Basic]Dim rect As New XRect()
rect.[String] = "10,10,200,100"
Response.Write("Top = " & rect.Top.ToString() & "<br>")
Response.Write("Right = " & rect.Right.ToString() & "<br>")
Response.Write("Bottom = " & rect.Bottom.ToString() & "<br>")
Response.Write("Left = " & rect.Left.ToString() & "<br>")
Response.Write("TopLeft = " & rect.TopLeft.ToString() & "<br>")
Response.Write("BottomRight = " & rect.BottomRight.ToString() & "<br>")
Response.Write("Width = " & rect.Width.ToString() & "<br>")
Response.Write("Height = " & rect.Height.ToString() & "<br>")


This produces the following output.

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