循环画
- Border style = new Border();
- var cellrange = FpSpread1.Cells[2, 2, 20, 20];
- style.BorderStyle = BorderStyle.Solid;
- style.BorderSize = 2;
- style.BorderColor = System.Drawing.Color.Black;
- for (int i = 0; i < 20; i++)
- {
- for (int j = 0; j < 20; j++)
- {
- FpSpread1.Cells[2 + i, 2 + j].Border = style; ;
- }
- }
复制代码 |