共用方式為


Padding 建構函式

定義

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

多載

名稱 Description
Padding(Int32)

使用所有邊的填充大小初始化該類別的新實例 Padding

Padding(Int32, Int32, Int32, Int32)

初始化類別的新實例 Padding ,使用每條邊的獨立填充大小。

Padding(Int32)

來源:
Padding.cs
來源:
Padding.cs
來源:
Padding.cs
來源:
Padding.cs
來源:
Padding.cs

使用所有邊的填充大小初始化該類別的新實例 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

所有邊的填充像素數。

備註

此構造子將 、 LeftBottomTopAll 屬性設定Right為參數的all值。

另請參閱

適用於

Padding(Int32, Int32, Int32, Int32)

來源:
Padding.cs
來源:
Padding.cs
來源:
Padding.cs
來源:
Padding.cs
來源:
Padding.cs

初始化類別的新實例 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 會反映這個共同值。

另請參閱

適用於