Left和Top坐标拿不到。或者你可以自己计算,把所有cell的width和height加起来。
其实你就是想显示PageBreak,除了划线,还有一个思路,代码如下:- this.fpSpread1.ActiveSheet.SetRowPageBreak(5, true);
- GeneralCellType g = new GeneralCellType();
- g.BackgroundImage = new Picture(Image.FromFile(@"D:\PageBreak.jpg"));
- g.BackgroundImage.AlignHorz = FarPoint.Win.HorizontalAlignment.Center;
- g.BackgroundImage.AlignVert = VerticalAlignment.Center;
- this.fpSpread1.ActiveSheet.RowHeader.Rows[5].CellType = g;
- this.fpSpread1.ActiveSheet.RowHeader.Rows[5].Label = " ";
复制代码 |