MESCIUS SPREAD for Windows Forms 15.0J
AllowEditorVerticalAlign プロパティ (EditBaseCellType)
使用例 

エディタの垂直方向の配置を許可するかどうかを取得または設定します。
構文
'宣言
 
Public Property AllowEditorVerticalAlign As Boolean
public bool AllowEditorVerticalAlign {get; set;}
使用例
次のサンプルコードは、AllowEditorVerticalAlignプロパティを設定します。
fpSpread1.Sheets[0].Cells[0, 0].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
fpSpread1.Sheets[0].Cells[0, 0].VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Bottom;
FarPoint.Win.Spread.CellType.TextCellType txt = new FarPoint.Win.Spread.CellType.TextCellType();
txt.AllowEditorVerticalAlign = true;
fpSpread1.Sheets[0].Cells[0, 0].CellType = txt;  
fpSpread1.Sheets[0].Cells[0, 0].Text = "test";
fpSpread1.Sheets(0).Cells(0, 0).HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
fpSpread1.Sheets(0).Cells(0, 0).VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Bottom
Dim txt As New FarPoint.Win.Spread.CellType.TextCellType()
txt.AllowEditorVerticalAlign = True
fpSpread1.Sheets(0).Cells(0, 0).CellType = txt;
fpSpread1.Sheets(0).Cells(0, 0).Text = "test"
参照

EditBaseCellType クラス
EditBaseCellType メンバ

 

 


© MESCIUS inc. All rights reserved.