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

Syntax

[Android.Runtime.Register("drawRect", "(Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "GetDrawRect_Landroid_graphics_Rect_Landroid_graphics_Paint_Handler")]
public virtual void DrawRect (Rect r, Paint paint)

Parameters

r
The rectangle to be drawn.
paint
The paint used to draw the rectangle

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