View.SetPadding(Int32, Int32, Int32, Int32) 方法

定義

設定填補。

[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 傳回的值可能與這個呼叫中設定的值不同。

android.view.View.setPadding(int, int, int, int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於