共用方式為


Drawable.SetBounds(Int32, Int32, Int32, Int32) Method

Definition

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
top
Int32
right
Int32
bottom
Int32
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.

Applies to