Insets the edges of the rectangle.

 

   

Syntax
 

[C#]
void Inset(double x, double y)

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

 

   

Params
 
Name Description
x The amount to inset the left and right edges.
y The amount to inset the top and bottom edges.

 

   

Notes
 

Insets the edges of the rectangle by a specified horizontal and vertical amount.

 

   

Example
 

The following code.

 

XRect rc = new XRect(); rc.String = "0 0 200 100"; Response.Write($"Rect = {rc}"); Response.Write("<br>"); rc.Inset(10, 20); Response.Write("Inset = " + rc.String);

Produces the following output.

Rect = 0 0 200 100
Inset = 10 20 190 80