MESCIUS SPREAD for Windows Forms 17.0J
VerticalAlignment プロパティ (Columns.DefaultColumn)

この列のセルのデフォルトの垂直方向の配置を取得または設定します。
構文
'Declaration
 
Public Shadows Property VerticalAlignment As CellVerticalAlignment
public new CellVerticalAlignment VerticalAlignment {get; set;}

プロパティ値

セル内容の垂直方向の配置を含むCellVerticalAlignmentオブジェクト
次のサンプルコードは、デフォルト列のこのプロパティおよびその他のプロパティの使用方法を示します。
FarPoint.Win.Spread.Columns.DefaultColumn df;
df = fpSpread1.ActiveSheet.Columns.Default;
df.AllowAutoSort = true;
df.BackColor = Color.Khaki;
df.Border = new FarPoint.Win.LineBorder(Color.Blue);
df.CellType = new FarPoint.Win.Spread.CellType.GeneralCellType();
df.Editor = fpSpread1.EditingControl;
df.Font = new Font("Comic Sans MS", 10);
df.ForeColor = Color.DarkBlue;
df.Formatter = fpSpread1.ActiveSheet.Columns.Default.Formatter;
df.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
df.Locked = false;
df.ParentStyleName = "HeaderDefault";
df.Renderer = fpSpread1.ActiveSheet.Columns.Default.Renderer;
df.StyleName = "HeaderDefault";
df.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top;
Dim df As FarPoint.Win.Spread.Columns.DefaultColumn
df = fpSpread1.ActiveSheet.Rows.Default
df.BackColor = Color.Khaki
df.Border = New FarPoint.Win.LineBorder(Color.Blue)
df.CellType = New FarPoint.Win.Spread.CellType.GeneralCellType
df.Editor = fpSpread1.EditingControl
df.Font = New Font("Comic Sans MS", 10)
df.ForeColor = Color.DarkBlue
df.Formatter = fpSpread1.ActiveSheet.Columns.Default.Formatter
df.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right
df.Locked = False
df.ParentStyleName = "HeaderDefault"
df.Renderer = fpSpread1.ActiveSheet.Columns.Default.Renderer
df.StyleName = "HeaderDefault"
df.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top
参照

Columns.DefaultColumn クラス
Columns.DefaultColumn メンバ

 

 


© MESCIUS inc. All rights reserved.