Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Graphics Class
Graphics Methods
Collapse All/Expand All Collapse All
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Graphics..::.DrawRectangle Method

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

  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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
DrawRectangle(Pen, RectangleF) ?      noroom   |   Edit   |   Show History
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?
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker