XRect Inset Function. Insets the edges of the rectangle. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

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.

[C#]
XRect rc = new XRect();
rc.String = "0 0 200 100";
Response.Write("Rect = " + rc.String);
Response.Write("<br>");
rc.Inset(10, 20);
Response.Write("Inset = " + rc.String);

[Visual Basic]
Dim rc As XRect = New XRect()
rc.String = "0 0 200 100"
Response.Write("Rect = " + rc.String)
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