Upgrade your Internet Experience
United States - English
Argentina (Español)
Australia (English)
Brasil (Português)
Canada (English)
Canada (Français)
中国 (简体中文)
Colombia (Español)
Deutschland (Deutsch)
España (Español)
France (Français)
India (English)
Italia (Italiano)
日本 (日本語)
México (Español)
Perú (Español)
Россия (Pусский)
United Kingdom (English)
United States (English)
More...
Microsoft.com
Welcome
Sign in
.NET Framework Developer Center
Home
Library
Learn
Downloads
Support
Community
Forums
Printer Friendly Version
Send
Community Content
Click to Rate and Give Feedback
Give feedback on this content
Switch View
x
Classic
Lightweight Beta
ScriptFree
Switch View
MSDN Library
MSDN
Please Wait
MSDN Library
Please Wait
.NET Development
Please Wait
.NET Framework 3.5
Please Wait
.NET Framework Class Library
Please Wait
System.Drawing Namespace
Please Wait
Graphics Class
Please Wait
Graphics Methods
Please Wait
DrawRectangle Method
Please Wait
Collapse All
Expand All
Language Filter
Visual Basic
C#
C++
J#
JScript
XAML
F#
Members Filter
Include Protected Members
Include Inherited Members
Frameworks Filter
Include .NET Framework Members
Include .NET Compact Framework Members
Include XNA Framework Members
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5
Other versions are also available for the following:
Microsoft Visual Studio 2003/.NET Framework 1.1
Microsoft Visual Studio 2005/.NET Framework 2.0
.NET Framework 3.0
Microsoft Visual Studio 2010/.NET Framework 4.0
.NET Framework Class Library
Graphics
.
.
::
.
DrawRectangle Method
Draws a rectangle specified by a coordinate pair, a width, and a height.
Overload List
Name
Description
DrawRectangle(Pen, Rectangle)
Draws a rectangle specified by a
Rectangle
structure.
DrawRectangle(Pen, Int32, Int32, Int32, Int32)
Draws a rectangle specified by a coordinate pair, a width, and a height.
DrawRectangle(Pen, Single, Single, Single, Single)
Draws a rectangle specified by a coordinate pair, a width, and a height.
Top
See Also
Reference
Graphics Class
Graphics Members
System.Drawing Namespace
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
Community Content
Add new content
Annotations
DrawRectangle(Pen, RectangleF) ?
noroom
|
Edit
|
Show History
Please Wait
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?
Tags
:
drawrectangle
(
x
)
graphics
(
x
)
overload
(
x
)
rectanglef
(
x
)
Add a tag
Add
Cancel
Flag as
ContentBug
|
Edit
Tags
:
Add a tag
Add
Cancel
Flag as
ContentBug
© 2009 Microsoft Corporation. All rights reserved.
Terms of Use
|
Trademarks
|
Privacy Statement
|
Site Feedback