Overload | Description |
---|---|
DrawRectangle(RectangleF,Color,Single,DashStyle) | Draws a rectangle using a specified line color, width and style.
If the value of lineStyle parameter is not DashStyle.Solid, the rectangle is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat. |
DrawRectangle(RectangleF,Color,Single,Single[]) | Draws a rectangle using a specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the rectangle is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat. |
DrawRectangle(RectangleF,Pen) | Draws a rectangle using a specified pen. |