Translate the rectangle.

 

   

Syntax
 

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

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

 

   

Params
 
Name Description
x The horizontal distance to move the rectangle.
y The vertical distance to move the rectangle.

 

   

Notes
 

Moves the rectangle maintaining the width and height.

 

   

Example
 

The following code.

 

var rc = new XRect(); rc.String = "20 20 220 120"; Response.Write($"Rect = {rc}"); rc.Move(50, 50); Response.Write("<br>"); Response.Write($"Move = {rc}");

Produces the following output.

Rect = 20 20 220 120
Move = 70 70 270 170

 

Also see example code in: Doc AddColorSpaceSpot Function, XColor Alpha Property, XRendering AntiAliasText Property, XTextStyle CharSpacing Property, XTextStyle HPos Property, XTextStyle Justification Property, XTextStyle LeftMargin Property, XTextStyle LineSpacing Property, XTextStyle Outline Property, XTextStyle ParaSpacing Property, XTextStyle VPos Property, XTextStyle WordSpacing Property, XTransform Magnify Function, Page GetBitmap Function, PixMap SetAlpha Function, PixMap ToGrayscale Function.