'Declaration
Public Function DrawRectangle( _ ByVal Left As Single, _ ByVal Top As Single, _ ByVal Width As Single, _ ByVal Height As Single, _ ByVal Fill As Boolean, _ ByVal Stroke As Boolean _ ) As GdPictureStatus
public GdPictureStatus DrawRectangle( float Left, float Top, float Width, float Height, bool Fill, bool Stroke )
public function DrawRectangle( Left: Single; Top: Single; Width: Single; Height: Single; Fill: Boolean; Stroke: Boolean ): GdPictureStatus;
public function DrawRectangle( Left : float, Top : float, Width : float, Height : 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.
- 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 SetFillColor(Byte,Byte,Byte) 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 SetLineColor(Byte,Byte,Byte) 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.