DrawRectangle Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Draws a rectangle on the drawing surface.

Namespace:  Microsoft.SPOT.Presentation.Media
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Sub DrawRectangle ( _
    brush As Brush, _
    pen As Pen, _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer _
)
public void DrawRectangle(
    Brush brush,
    Pen pen,
    int x,
    int y,
    int width,
    int height
)
public:
void DrawRectangle(
    Brush^ brush, 
    Pen^ pen, 
    int x, 
    int y, 
    int width, 
    int height
)
member DrawRectangle : 
        brush:Brush * 
        pen:Pen * 
        x:int * 
        y:int * 
        width:int * 
        height:int -> unit 
public function DrawRectangle(
    brush : Brush, 
    pen : Pen, 
    x : int, 
    y : int, 
    width : int, 
    height : int
)

Parameters

  • brush
    Type: Microsoft.SPOT.Presentation.Media. . :: . .Brush
    The brush with which the rectangle is to be filled. This parameter is optional, and it can be nullNothingnullptrunita null reference (Nothing in Visual Basic). If the value of brush is nullNothingnullptrunita null reference (Nothing in Visual Basic), the rectangle is not filled.
  • pen
    Type: Microsoft.SPOT.Presentation.Media. . :: . .Pen
    The pen with which the outline of the rectangle is to be drawn. This parameter is optional, and it can be nullNothingnullptrunita null reference (Nothing in Visual Basic). If the value of pen is nullNothingnullptrunita null reference (Nothing in Visual Basic), no outline is drawn.

Remarks

The drawing is not visible if the values of both the pen and brush parameters are null Nothing nullptr unit a null reference (Nothing in Visual Basic) .

.NET Framework Security

See Also

Reference

DrawingContext Class

Microsoft.SPOT.Presentation.Media Namespace