Adds a rectangular frame to the current page.

 

   
Syntax
 
     

GraphicID = Doc.FrameRect([RadiusX, [RadiusY]])

 

   
Params
 
     
Name   Type   Description
RadiusX Long

The horizontal radius to use for rounded corners (optional).

RadiusY Long

The vertical radius to use for rounded corners (optional).

GraphicID Long The Object ID of the newly added Graphic Object.

 

   
Notes
 
     

Adds a rectangular frame to the current page. The frame location and size is determined by the current rectangle, the line color is determined by the current color, the line width is determined by the current width and any options are determined by the current options.

By specifying values for the horizontal and vertical radius parameters you can draw rectangles with rounded corners. The values refers to the radii of the ellipse used to draw the corners.

The FrameRect function returns the Object ID of the newly added Graphic Object.

 

   
Example
 
     

The following code adds a black frame to a document. The frame is inset from the edges of the document by 50 points horizontally and 100 points vertically.

Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.Rect.Inset 50, 100
theDoc.FrameRect
t
heDoc.Save "c:\docframerect.pdf"


docframerect.pdf

   

 

Browser Based Help. Published by chm2web software.