Android.Graphics.Canvas.DrawRect Method
Draw the specified Rect using the specified paint.

Syntax

[Android.Runtime.Register("drawRect", "(FFFFLandroid/graphics/Paint;)V", "GetDrawRect_FFFFLandroid_graphics_Paint_Handler")]
public virtual void DrawRect (float left, float top, float right, float bottom, Paint paint)

Parameters

left
The left side of the rectangle to be drawn
top
The top side of the rectangle to be drawn
right
The right side of the rectangle to be drawn
bottom
The bottom side of the rectangle to be drawn
paint
The paint used to draw the rect

Remarks

Draw the specified Rect using the specified paint. The rectangle will be filled or framed based on the Style in the paint.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1