語言

ShapeDrawable.SetPadding 方法

定義

多載

名稱 Description
SetPadding(Rect)

為此形狀設置填充,由 Rect 物件定義。

SetPadding(Int32, Int32, Int32, Int32)

為形狀提供墊料。

SetPadding(Rect)

為此形狀設置填充,由 Rect 物件定義。

[Android.Runtime.Register("setPadding", "(Landroid/graphics/Rect;)V", "GetSetPadding_Landroid_graphics_Rect_Handler")]
public virtual void SetPadding(Android.Graphics.Rect? padding);
[<Android.Runtime.Register("setPadding", "(Landroid/graphics/Rect;)V", "GetSetPadding_Landroid_graphics_Rect_Handler")>]
abstract member SetPadding : Android.Graphics.Rect -> unit
override this.SetPadding : Android.Graphics.Rect -> unit

參數

padding
Rect
屬性

備註

為此形狀設置填充,由 Rect 物件定義。 在 Rect 物件中定義填充為:左、上、右、下。

Java 文件 android.graphics.drawable.ShapeDrawable.setPadding(android.graphics.Rect)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

底部的填充(以像素為單位)

屬性

備註

為形狀提供墊料。

Java 文件 android.graphics.drawable.ShapeDrawable.setPadding(int, int, int, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於