回复 1楼smartmm的帖子
smartmm 你好,
Spread 提供 Shape 用于画直线等图形,可用于代替 Excel 斜边框,同样可用于打印,以下是参考代码:
- private void Form1_Load(object sender, EventArgs e)
- {
- FarPoint.Win.Spread.DrawingSpace.LineShape lShape = new FarPoint.Win.Spread.DrawingSpace.LineShape();
- lShape.Name = "myRect1";
- lShape.Top = 4;
- lShape.Left = 2;
- lShape.RotationAngle = 28.7427578f;
- lShape.BackColor = Color.Blue;
- lShape.Width = 118;
- lShape.Height = 80;
- this.fpSpread1.Sheets[0].AddShape(lShape);
- }
复制代码 |