共用方式為


RecordingCanvas.DrawRect Method

Definition

Overloads

DrawRect(Rect, Paint)
DrawRect(RectF, Paint)
DrawRect(Single, Single, Single, Single, Paint)

DrawRect(Rect, Paint)

[Android.Runtime.Register("drawRect", "(Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawRect (Android.Graphics.Rect r, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRect", "(Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawRect : Android.Graphics.Rect * Android.Graphics.Paint -> unit

Parameters

r
Rect
paint
Paint
Attributes

Applies to

DrawRect(RectF, Paint)

[Android.Runtime.Register("drawRect", "(Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawRect (Android.Graphics.RectF rect, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRect", "(Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawRect : Android.Graphics.RectF * Android.Graphics.Paint -> unit

Parameters

rect
RectF
paint
Paint
Attributes

Applies to

DrawRect(Single, Single, Single, Single, Paint)

[Android.Runtime.Register("drawRect", "(FFFFLandroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawRect (float left, float top, float right, float bottom, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRect", "(FFFFLandroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawRect : single * single * single * single * Android.Graphics.Paint -> unit

Parameters

left
Single
top
Single
right
Single
bottom
Single
paint
Paint
Attributes

Applies to