Drawable.SetBounds(Int32, Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定一個可繪製的邊界矩形。
[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。