'Declaration
Public Function DrawRoundedRectangle( _ ByVal Left As Single, _ ByVal Top As Single, _ ByVal Width As Single, _ ByVal Height As Single, _ ByVal Radius As Single, _ ByVal Fill As Boolean, _ ByVal Stroke As Boolean _ ) As GdPictureStatus
public GdPictureStatus DrawRoundedRectangle( float Left, float Top, float Width, float Height, float Radius, bool Fill, bool Stroke )
public function DrawRoundedRectangle( Left: Single; Top: Single; Width: Single; Height: Single; Radius: Single; Fill: Boolean; Stroke: Boolean ): GdPictureStatus;
public function DrawRoundedRectangle( Left : float, Top : float, Width : float, Height : float, Radius : float, Fill : boolean, Stroke : boolean ) : GdPictureStatus;
Parameters
- Left
- The horizontal (X) coordinate of the rectangle's starting point, expressed in the current units specified by the SetMeasurementUnit method with respect to the defined origin, related to the currently selected page.
- Top
- The vertical (Y) coordinate of the rectangle's starting point, expressed in the current units specified by the SetMeasurementUnit method with respect to the defined origin, related to the currently selected page.
- Width
- The width of the rectangle, expressed in the current units specified by the SetMeasurementUnit method.
- Height
- The height of the rectangle, expressed in the current units specified by the SetMeasurementUnit method.
- Radius
- The radius of the circle, of which the arc in the rectangle's corners is a part, expressed in the current units specified by the SetMeasurementUnit method. The center of this circle is situated inside the rectangle's corners.
- Fill
- Set this parameter to true, if you want to fill the rectangle using the currently defined fill color, otherwise set it to false. You can set the fill color using the GdPicturePDF.SetFillColor method.
- Stroke
- Set this parameter to true, if you want to stroke the rectangle (draw a boundary line along the rectangle) using the currently defined line color, otherwise set it to false. You can set the line color using the GdPicturePDF.SetLineColor method.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.