Android Guides | Samples

Android.Graphics.Drawables.Drawable.CopyBounds Method

Return a copy of the drawable's bounds in the specified Rect (allocated by the caller).

Syntax

[Android.Runtime.Register("copyBounds", "(Landroid/graphics/Rect;)V", "")]
public Void CopyBounds (Rect bounds)

Parameters

bounds
Rect to receive the drawable's bounds (allocated by the caller).

Remarks

Return a copy of the drawable's bounds in the specified Rect (allocated by the caller). The bounds specify where this will draw when its draw() method is called.

[Android Documentation]

Requirements

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