Type   Default Value   Read Only   Description
XRect The dimensions of the current page. No The current rectangle used for drawing operations.

 

   
Notes
 
     

This property determines the current rectangle. This is used by a number of operations including AddText, AddImage, FrameRect and FillRect.

The XRect object represents a rectangular area in two-dimensional space. The properties of the XRect object represent the bottom left and top right corners of the area.

AddText adds text within the current rectangle wrapping the text at the edges.

AddImage adds an image scaled to fill the current rectangle.

FrameRect frames the current rectangle and FillRect fills the current rectangle.

When you change this property the Pos property is reset to point to the top left of the Rect.

 

   
Example
 
     

The following code creates a PDF document containing a number of concentric frames.

Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.Rect = "50 50 550 550"
For i = 1 to 20
  theDoc.FrameRect
  theDoc.Rect.Inset 20, 20
Next

theDoc.Save "c:\docrect.pdf"


docrect.pdf

   

 

Browser Based Help. Published by chm2web software.