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

列の水平方向の配置をリセットし、その列にデフォルト列の水平方向の配置を継承します。
構文
'Declaration
 
Public Sub ResetHorizontalAlignment() 
public void ResetHorizontalAlignment()
次のサンプルコードは、ResetHorizontalAlignmentメソッドを使用します。
FarPoint.Web.Spread.Column mycol;
mycol = FpSpread1.ActiveSheetView.Columns[1];
mycol.CellType = new FarPoint.Web.Spread.TextCellType();
mycol.HorizontalAlign = HorizontalAlign.Right;
mycol.VerticalAlign = VerticalAlign.Bottom;
mycol.Locked = true;
mycol.Width = 140;
FpSpread1.ActiveSheetView.Cells[0, 1].Text = "Column";
//mycol.ResetCellType();
//mycol.ResetHorizontalAlignment();
//mycol.ResetVerticalAlignment();
//mycol.ResetLocked();
//mycol.ResetWidth();
Dim mycol As FarPoint.Web.Spread.Column
mycol = FpSpread1.ActiveSheetView.Columns(1)
mycol.CellType = New FarPoint.Web.Spread.TextCellType()
mycol.HorizontalAlign = HorizontalAlign.Right
mycol.VerticalAlign = VerticalAlign.Bottom
mycol.Locked = True
mycol.Width = 140
FpSpread1.ActiveSheetView.Cells(0, 1).Text = "Column"
'mycol.ResetCellType()
'mycol.ResetHorizontalAlignment()
'mycol.ResetVerticalAlignment()
'mycol.ResetLocked()
'mycol.ResetWidth()
参照

Column クラス
Column メンバ

 

 


© MESCIUS inc. All rights reserved.