Drawable.SetBounds(Int32, Int32, Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specify a bounding rectangle for the Drawable.
[Android.Runtime.Register("setBounds", "(IIII)V", "GetSetBounds_IIIIHandler")]
public virtual void SetBounds(int left, int top, int right, int bottom);
[<Android.Runtime.Register("setBounds", "(IIII)V", "GetSetBounds_IIIIHandler")>]
abstract member SetBounds : int * int * int * int -> unit
override this.SetBounds : int * int * int * int -> unit
Parameters
- left
- Int32
The left edge of the bounds.
- top
- Int32
The top edge of the bounds.
- right
- Int32
The right edge of the bounds.
- bottom
- Int32
The bottom edge of the bounds.
- Attributes
Remarks
Specify a bounding rectangle for the Drawable. This is where the drawable will draw when its draw() method is called.
Java documentation for android.graphics.drawable.Drawable.setBounds(int, int, int, int).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.