Skip to main content

GraphicsCache.DrawRectangle Method

Name Parameters Description
DrawRectangle(Pen, Rectangle) pen, rect Draws a rectangle specified by a Rectangle structure.
DrawRectangle(Pen, RectangleF) pen, rect Draws a Rectangle.
DrawRectangle(Rectangle, Color, Int32) rect, color, thickness Draws a rectangle specified by a Rectangle structure.
DrawRectangle(Int32, Int32, Int32, Int32, Color, Int32) x, y, width, height, color, thickness Draws a rectangle specified by a pair of coordinates, a width, and a height.
DrawRectangle(Single, Single, Single, Single, Color, Int32) x, y, width, height, color, thickness Draws a rectangle with the specified border color and thickness.