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
傳回的值可能與這個呼叫中所設定的值不同。
的 android.view.View.setPadding(int, int, int, int)
JAVA 檔。
此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。