DrawingContext.DrawRectangle Method
Draws a rectangle on the drawing surface.
Namespace: Microsoft.SPOT.Presentation.Media
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)
Syntax
public void DrawRectangle (
Brushbrush,
Penpen,
intx,
inty,
intwidth,
intheight
)
Parameters
- brush
The brush with which the rectangle is to be filled. This parameter is optional, and it can be a null value. If the value of brush is null, the rectangle is not filled. - pen
The pen with which the outline of the rectangle is to be drawn. This parameter is optional, and it can be a null value. If the value of pen is null, no outline is drawn. - x
The horizontal coordinate of the left edge of the rectangle. - y
The vertical coordinate of the top edge of the rectangle. - width
The width of the rectangle. - height
The height of the rectangle.
Remarks
The drawing is not visible if the values of both the pen and brush parameters are null.
Version Information
Available in .NET Micro Framework version 2.0, 2.5
See Also
Reference
DrawingContext Class
DrawingContext Members
Microsoft.SPOT.Presentation.Media Namespace