Padding 建構函式

定義

初始化 Padding 類別的新執行個體。

多載

Padding(Int32)

使用為所有邊緣所提供的邊框距離大小,初始化 Padding 類別的新執行個體。

Padding(Int32, Int32, Int32, Int32)

使用每一個邊緣的個別邊框距離大小,初始化 Padding 類別的新執行個體。

Padding(Int32)

使用為所有邊緣所提供的邊框距離大小,初始化 Padding 類別的新執行個體。

public:
 Padding(int all);
public Padding (int all);
new System.Windows.Forms.Padding : int -> System.Windows.Forms.Padding
Public Sub New (all As Integer)

參數

all
Int32

用於所有邊緣之邊框距離的像素數。

備註

這個建構函式會將 RightLeft BottomTopAll 屬性設定為 參數的值 all

另請參閱

適用於

Padding(Int32, Int32, Int32, Int32)

使用每一個邊緣的個別邊框距離大小,初始化 Padding 類別的新執行個體。

public:
 Padding(int left, int top, int right, int bottom);
public Padding (int left, int top, int right, int bottom);
new System.Windows.Forms.Padding : int * int * int * int -> System.Windows.Forms.Padding
Public Sub New (left As Integer, top As Integer, right As Integer, bottom As Integer)

參數

left
Int32

左邊緣的邊框距離大小 (以像素為單位)。

top
Int32

上邊緣的邊框距離大小 (以像素為單位)。

right
Int32

右邊緣的邊框距離大小 (以像素為單位)。

bottom
Int32

下邊緣的邊框距離大小 (以像素為單位)。

備註

如果所有參數值都相等,則 All 屬性會反映這個通用值。

另請參閱

適用於