MESCIUS SPREAD for Windows Forms 17.0J
VerticalAlignment プロパティ (StyleInfo)

このスタイルのセルの内容の垂直配置を取得または設定します。
構文
'Declaration
 
Public Overridable Property VerticalAlignment As CellVerticalAlignment
public virtual CellVerticalAlignment VerticalAlignment {get; set;}

プロパティ値

セル内容の垂直方向の配置を決定するCellVerticalAlignment設定
FarPoint.Win.Spread.StyleInfo si = new FarPoint.Win.Spread.StyleInfo();
DialogResult dlg;
si.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Bottom;
fpSpread1.ActiveSheet.DefaultStyle = si;
dlg = MessageBox.Show("Reset the alignment?");
if (dlg == DialogResult.OK)
{
si.ResetVerticalAlignment();
fpSpread1.ActiveSheet.DefaultStyle = si;
}
Dim si As New FarPoint.Win.Spread.StyleInfo
Dim dlg As DialogResult
si.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Bottom
fpSpread1.ActiveSheet.DefaultStyle = si
dlg = MessageBox.Show("Reset the alignment?")
If dlg = DialogResult.OK Then
si.ResetVerticalAlignment()
fpSpread1.ActiveSheet.DefaultStyle = si
End If
参照

StyleInfo クラス
StyleInfo メンバ

 

 


© MESCIUS inc. All rights reserved.