Android Guides | Samples

Android.Graphics.Drawables.Drawable.SetBounds Method

Specify a bounding rectangle for the Drawable.

Syntax

[Android.Runtime.Register("setBounds", "(IIII)V", "GetSetBounds_IIIIHandler")]
public virtual Void SetBounds (Int32 left, Int32 top, Int32 right, Int32 bottom)

Parameters

left
top
right
bottom

Remarks

Specify a bounding rectangle for the Drawable. This is where the drawable 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