Adds a painted rectangle to the current page.

 

   
Syntax
 
     

GraphicID = Doc.FillRect([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 painted rectangle to the current page. The rectangle location and size is determined by the current rectangle, the fill color is determined by the current color 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 FillRect function returns the Object ID of the newly added Graphic Object.

 

   
Example
 
     

The following code adds a blue filled rectangle to a document. The frame is inset from the edges of the document by 200 points horizontally and 100 points vertically.

Set theDoc = Server.CreateObject("ABCpdf3.Doc")
theDoc.Rect.Inset 200, 100
theDoc.Color.Blue = 255

theDoc.FillRect
theDoc.Save "c:\docfillrect.pdf"


docfillrect.pdf

   

 

Browser Based Help. Published by chm2web software.