Accusoft.PrintPro8.Net
RoundRectangle(PointF,PointF,Single,Single,Color) Method




A System.Drawing.PointF which represents the upper-left coordinate.
A System.Drawing.PointF which represents the lower-right coordinate.
A single-precision value that specifies the width of the ellipse used to draw the rounded corners. A negative value has the same effect as its positive counterpart.
A single-precision value that specifies the height of the ellipse used to draw the rounded corners. A negative value has the same effect as its positive counterpart.
A System.Drawing.Color of the circle’s outline.
Draws a rectangle with rounded corners on printer.
Syntax
'Declaration
 
Public Overloads Sub RoundRectangle( _
   ByVal upperLeft As PointF, _
   ByVal lowerRight As PointF, _
   ByVal roundWidth As Single, _
   ByVal roundHeight As Single, _
   ByVal color As Color _
) 
'Usage
 
Dim instance As Draw
Dim upperLeft As PointF
Dim lowerRight As PointF
Dim roundWidth As Single
Dim roundHeight As Single
Dim color As Color
 
instance.RoundRectangle(upperLeft, lowerRight, roundWidth, roundHeight, color)
public void RoundRectangle( 
   PointF upperLeft,
   PointF lowerRight,
   float roundWidth,
   float roundHeight,
   Color color
)
public: void RoundRectangle( 
   PointF upperLeft,
   PointF lowerRight,
   float roundWidth,
   float roundHeight,
   Color color
) 
public:
void RoundRectangle( 
   PointF upperLeft,
   PointF lowerRight,
   float roundWidth,
   float roundHeight,
   Color color
) 

Parameters

upperLeft
A System.Drawing.PointF which represents the upper-left coordinate.
lowerRight
A System.Drawing.PointF which represents the lower-right coordinate.
roundWidth
A single-precision value that specifies the width of the ellipse used to draw the rounded corners. A negative value has the same effect as its positive counterpart.
roundHeight
A single-precision value that specifies the height of the ellipse used to draw the rounded corners. A negative value has the same effect as its positive counterpart.
color
A System.Drawing.Color of the circle’s outline.
Remarks

The coordinates of the round rectangle must be within the physical area of the printer. 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 Width property. The way the rectangle is drawn on the background depends on the setting of the Mode and Style properties.

See Also

Reference

Draw Class
Draw Members
Overload List

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback