MESCIUS SPREAD for ASP.NET 10.0J
ResetMargin メソッド (Column)

この列のすべてのセルについて、セル罫線とセルの内容との間隔を定義するセル余白の設定をリセットします。
構文
'Declaration
 
Public Sub ResetMargin() 
public void ResetMargin()
次のサンプルコードは、ResetMarginメソッドを使用します。
FarPoint.Web.Spread.Column mycol;
FarPoint.Web.Spread.Inset inset = new FarPoint.Web.Spread.Inset(20, 50, 80, 20);
mycol = FpSpread1.ActiveSheetView.Columns[1];
mycol.Margin = inset;
mycol.Width = 140;
FpSpread1.ActiveSheetView.Cells[0, 1].Text = "Column";
FpSpread1.ActiveSheetView.Rows[0].Height = 70;
//mycol.ResetMargin();
Dim mycol As FarPoint.Web.Spread.Column
Dim inset As New FarPoint.Web.Spread.Inset(20, 50, 80, 20)
mycol = FpSpread1.ActiveSheetView.Columns(1)
mycol.Margin = inset
mycol.Width = 140
FpSpread1.ActiveSheetView.Cells(0, 1).Text = "Column"
FpSpread1.ActiveSheetView.Rows(0).Height = 70
'mycol.ResetMargin()
参照

Column クラス
Column メンバ

 

 


© MESCIUS inc. All rights reserved.