ILocationButtonSession.SetPadding(Int32, Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在容器內設定位置按鈕的填充。
[Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void SetPadding(int left, int top, int right, int bottom);
[<Android.Runtime.Register("setPadding", "(IIII)V", "GetSetPadding_IIIIHandler:Android.App.PermissionUI.ILocationButtonSessionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member SetPadding : int * int * int * int -> unit
參數
- left
- Int32
左側像素填充。
- top
- Int32
頂層填充物以像素為單位。
- right
- Int32
像素填充的正確空間。
- bottom
- Int32
底部填充物以像素為單位。
- 屬性
備註
在容器內設定位置按鈕的填充。
請參閱填充設定器(例如 LocationButtonRequest.Builder.setPaddingLeft(int))以獲取輸入約束。
Android 參考資料。android.app.permissionui.LocationButtonSession.setPadding
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。