View.SetPadding(Int32, Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定了填充物。
[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")]
public virtual void SetPadding(int left, int top, int right, int bottom);
[<Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler")>]
abstract member SetPadding : int * int * int * int -> unit
override this.SetPadding : int * int * int * int -> unit
參數
- left
- Int32
左側填充(像素數)
- top
- Int32
頂部填充物以像素為單位
- right
- Int32
像素填充的正確比例
- bottom
- Int32
底部填充(像素單位)
- 屬性
備註
設定了填充物。 視圖可能會增加顯示捲軸所需的空間,視捲軸條的樣式與可見性而定。 因此,從 #getPaddingLeft、 #getPaddingTop和 #getPaddingRight#getPaddingBottom 回傳的值可能與此呼叫中設定的值不同。
Java 文件 android.view.View.setPadding(int, int, int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。