FarPoint.Web.Spread 名前空間 > AlternatingRow クラス : Margin プロパティ |
このプロパティの設定は、StyleNameプロパティを使用して、セルに名前付きスタイルが割り当てられ、その名前付きスタイルでマージンを設定している場合はオーバーライドされます。
FarPoint.Web.Spread.Inset inset = new FarPoint.Web.Spread.Inset(35, 5, 5, 35); FpSpread1.Sheets[0].AlternatingRows.Count = 3; FpSpread1.Sheets[0].Rows[0].Height = 80; FpSpread1.Sheets[0].Rows[1].Height = 80; FpSpread1.Sheets[0].Rows[2].Height = 80; FpSpread1.Sheets[0].SetCellValue(0, 0, "Test"); FpSpread1.Sheets[0].SetCellValue(1, 0, "for"); FpSpread1.Sheets[0].SetCellValue(2, 0, "Margin"); FpSpread1.Sheets[0].AlternatingRows[0].Margin = inset; FpSpread1.Sheets[0].AlternatingRows[1].Margin = inset; FpSpread1.Sheets[0].AlternatingRows[2].Margin = inset;
Dim inset As New FarPoint.Web.Spread.Inset(35, 5, 5, 35) FpSpread1.Sheets(0).AlternatingRows.Count = 3 FpSpread1.Sheets(0).Rows(0).Height = 80 FpSpread1.Sheets(0).Rows(1).Height = 80 FpSpread1.Sheets(0).Rows(2).Height = 80 FpSpread1.Sheets(0).SetCellValue(0, 0, "Test") FpSpread1.Sheets(0).SetCellValue(1, 0, "for") FpSpread1.Sheets(0).SetCellValue(2, 0, "Margin") FpSpread1.Sheets(0).AlternatingRows(0).Margin = inset FpSpread1.Sheets(0).AlternatingRows(1).Margin = inset FpSpread1.Sheets(0).AlternatingRows(2).Margin = inset