.NET Framework Class Library
Graphics..::.DrawRectangle Method

Draws a rectangle specified by a coordinate pair, a width, and a height.

Overload List

  NameDescription
Public methodSupported by the .NET Compact FrameworkDrawRectangle(Pen, Rectangle)Draws a rectangle specified by a Rectangle structure.
Public methodSupported by the .NET Compact FrameworkDrawRectangle(Pen, Int32, Int32, Int32, Int32)Draws a rectangle specified by a coordinate pair, a width, and a height.
Public methodDrawRectangle(Pen, Single, Single, Single, Single)Draws a rectangle specified by a coordinate pair, a width, and a height.
Top
See Also

Reference

Tags :


Community Content

noroom
DrawRectangle(Pen, RectangleF) ?
Why is there no overload that takes a RectangleF? FillRectangle, FillElipse and DrawEllipse all can take a RectangleF, but DrawRectangle cannot. Is there a specific reason for this?

Page view tracker