PowerTools SPREAD for Windows Forms 10.0J
VerticalAlignment プロパティ (Column)


この列のセルのデフォルトの垂直方向の配置を取得または設定します。
構文
'Declaration
 
Public Property VerticalAlignment As CellVerticalAlignment
'使用法
 
Dim instance As Column
Dim value As CellVerticalAlignment
 
instance.VerticalAlignment = value
 
value = instance.VerticalAlignment
public CellVerticalAlignment VerticalAlignment {get; set;}

プロパティ値

セル内容の垂直方向の配置を含むCellVerticalAlignmentオブジェクト
解説
このプロパティはリッチテキスト型セルには適用されません。
次のサンプルコードは、列のテキスト配置を指定します。
FarPoint.Win.Spread.Column col;
fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
col = fpSpread1.ActiveSheet.Columns[0];
col.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
col.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center;
col.Width = 120;
fpSpread1.ActiveSheet.Rows[0].Height = 60;
Dim col As FarPoint.Win.Spread.Column
FpSpread1.ActiveSheet.Cells(0, 0).Text = "Alignment"
col = FpSpread1.ActiveSheet.Columns(0)
col.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
col.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Center
col.Width = 120
FpSpread1.ActiveSheet.Rows(0).Height = 60
参照

Column クラス
Column メンバ
CellVerticalAlignment 列挙体

 

 


© 2004-2017, GrapeCity inc. All rights reserved.