FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > AlternatingRow クラス : HorizontalAlignment プロパティ |
'Declaration Public Property HorizontalAlignment As CellHorizontalAlignment
'使用法 Dim instance As AlternatingRow Dim value As CellHorizontalAlignment instance.HorizontalAlignment = value value = instance.HorizontalAlignment
public CellHorizontalAlignment HorizontalAlignment {get; set;}
交互行を作成するには、AlternatingRows.Countプロパティを設定して交互行パターンの数を指定してから、各パターンのプロパティを設定します。
FarPoint.Win.Spread.AlternatingRow altrow;
altrow = fpSpread1.ActiveSheet.AlternatingRows[0];
altrow.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right;
altrow.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top;
fpSpread1.ActiveSheet.Rows[0].Height = 80;
fpSpread1.ActiveSheet.Columns[0].Width = 120;
fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
Dim altrow As FarPoint.Win.Spread.AlternatingRow altrow = FpSpread1.ActiveSheet.AlternatingRows(0) altrow.HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Right altrow.VerticalAlignment = FarPoint.Win.Spread.CellVerticalAlignment.Top FpSpread1.ActiveSheet.Rows(0).Height = 80 FpSpread1.ActiveSheet.Columns(0).Width = 120 FpSpread1.ActiveSheet.Cells(0, 0).Text = "Alignment"