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.
- x
Type: System. . :: . .Int32
The horizontal coordinate of the left edge of the rectangle.
- y
Type: System. . :: . .Int32
The vertical coordinate of the top edge of the rectangle.
- width
Type: System. . :: . .Int32
The width of the rectangle.
- height
Type: System. . :: . .Int32
The height of the rectangle.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.