Table.CellSpacing 屬性

定義

取得或設定儲存格之間的間距。

public:
 virtual property int CellSpacing { int get(); void set(int value); };
[System.ComponentModel.Bindable(true)]
public virtual int CellSpacing { get; set; }
public virtual int CellSpacing { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.CellSpacing : int with get, set
member this.CellSpacing : int with get, set
Public Overridable Property CellSpacing As Integer

屬性值

儲存格之間的間距數量,以像素為單位。 預設值為 -1,表示這個屬性未設定。

屬性

備註

CellSpacing使用 屬性來控制 控制項中 Table 相鄰儲存格之間的間距。 此間距會垂直和水準套用。 整個表格的儲存格間距是一致的。 無法指定每個資料列或欄之間的個別儲存格間距。

注意

如果您將此屬性設定為大於 0 的值,並將 屬性設定 GridLines 為顯示儲存格框線的值,則會在相鄰儲存格的框線之間顯示間距。 在此情況下, CellSpacing 屬性會控制間距的大小。

適用於

另請參閱