Accusoft PrintPRO 8
DrawRoundRect Method
Single-precision value indicating the upper-left x coordinate for the bounding rectangle.
Single-precision value indicating the upper-left y coordinate for the bounding rectangle.
Single-precision value indicating the lower-right x coordinate for the bounding rectangle.
Single-precision value indicating the lower-right y coordinate for the bounding rectangle.
A single-precision value that specifies the width of the ellipse used to draw the rounded corners.
A single-precision value that specifies the height of the ellipse used to draw the rounded corners.
Long integer value indicating the RGB color of the circle’s outline. You can use the Visual Basic RGB function or QBColor function to specify the color.
Description

Creates a rectangle with rounded corners on the document to be printed.

Syntax
Visual Basic
Public Sub DrawRoundRect( _
   ByVal X1 As Single, _
   ByVal Y1 As Single, _
   ByVal X2 As Single, _
   ByVal Y2 As Single, _
   ByVal RoundW As Single, _
   ByVal RoundH As Single, _
   ByVal penColor As OLE_COLOR _
) 
Parameters
X1
Single-precision value indicating the upper-left x coordinate for the bounding rectangle.
Y1
Single-precision value indicating the upper-left y coordinate for the bounding rectangle.
X2
Single-precision value indicating the lower-right x coordinate for the bounding rectangle.
Y2
Single-precision value indicating the lower-right y coordinate for the bounding rectangle.
RoundW
A single-precision value that specifies the width of the ellipse used to draw the rounded corners.
RoundH
A single-precision value that specifies the height of the ellipse used to draw the rounded corners.
penColor
Long integer value indicating the RGB color of the circle’s outline. You can use the Visual Basic RGB function or QBColor function to specify the color.
Remarks

The coordinates of the round rectangle must be within the physical area of the printed page.

To fill a rounded rectangle, set the FillColor and FillStyle properties of the object on which the rectangle is drawn.

The width of the line used to draw the rectangle depends on the setting of the DrawWidth property.

The way the rectangle is drawn on the background depends on the setting of the DrawMode and DrawStyle properties.

If a printer has not been selected or a document has not been started, the DrawRoundRect method will select the default printer and start a new document.

You can omit an argument in the middle of the syntax, but you must include the argument’s comma before including the next argument. If you omit an optional argument, omit the comma following the last argument you specify.

When DrawRoundRect executes, the CurrentX and CurrentY properties are set to X2 and Y2.

See Also

PrintPro Object  | PrintPro Members

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback