FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > AlternatingRow クラス : Font プロパティ |
'Declaration Public Property Font As Font
'使用法 Dim instance As AlternatingRow Dim value As Font instance.Font = value value = instance.Font
public Font Font {get; set;}
交互行を作成するには、AlternatingRows.Countプロパティを設定して交互行パターンの数を指定してから、各パターンのプロパティを設定します。
FarPoint.Win.Spread.AlternatingRow altrow; altrow = fpSpread1.ActiveSheet.AlternatingRows[0]; fpSpread1.ActiveSheet.Cells[0, 0].Text = "Test"; fpSpread1.ActiveSheet.Cells[1, 0].Text = "For"; fpSpread1.ActiveSheet.Cells[2, 0].Text = "Fonts"; FontDialog FontDB = new FontDialog(); if (FontDB.ShowDialog() == DialogResult.OK) { altrow.Font = FontDB.Font; }
Dim altrow As FarPoint.Win.Spread.AlternatingRow altrow = FpSpread1.ActiveSheet.AlternatingRows(0) FpSpread1.ActiveSheet.Cells(0, 0).Text = "Test" FpSpread1.ActiveSheet.Cells(1, 0).Text = "For" FpSpread1.ActiveSheet.Cells(2, 0).Text = "Fonts" Dim FontDB As New FontDialog() If (FontDB.ShowDialog() = DialogResult.OK) Then altrow.Font = FontDB.Font End If