語言

Drawable.SetBounds(Int32, Int32, Int32, Int32) 方法

定義

指定一個可繪製的邊界矩形。

[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

參數

left
Int32

邊界的左邊。

top
Int32

界限的頂端。

right
Int32

右邊界線。

bottom
Int32

界限的底邊。

屬性

備註

指定一個可繪製的邊界矩形。 這就是當 draw() 方法被呼叫時,可繪圖物件會繪製的地方。

Java 文件 android.graphics.drawable.Drawable.setBounds(int, int, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於