回复 20楼Alice的帖子
位置还是没变化……
为什么怎么尝试都不成功呢?
- for (int i = 0; i < _numPages; i++)
- {
- FarPoint.Win.Spread.CellType.TextCellType txt =
- fpSpread1.Sheets[0].GetCellType(1, 1) as FarPoint.Win.Spread.CellType.TextCellType;
- FarPoint.Win.Picture p = txt.BackgroundImage;
- p.AlignHorz = FarPoint.Win.HorizontalAlignment.Center; //设置图片水平居中
- p.AlignVert = FarPoint.Win.VerticalAlignment.Center; //设置图片纵向居中
- txt.BackgroundImage = p;
- fpSpread1.Sheets[0].Cells.Get(1 + (i * 20), 1).CellType = txt;
- txt.BackgroundImage.AlignHorz = FarPoint.Win.HorizontalAlignment.Center;
- txt.BackgroundImage.AlignVert = FarPoint.Win.VerticalAlignment.Center;
- }
复制代码
眼看着项目就要提交了,估计这个功能要放弃了吧 |