嗯,我看过了,上面写错了,应该是选定区域,下面是我设左边框的代码,但是如何在设置了上边框,再设置下边框的时候,上边框还保留?这得加判断吗?还有有设所有边框的方法吗,我只找到了setoutlineborder设置外边框,然后线型和颜色如何设为用户自定义的?谢谢您不吝赐教。
FarPoint.Win.BevelBorder leftborder = new FarPoint.Win.BevelBorder(FarPoint.Win.BevelBorderType.Raised, Color.Black, Color.Black, 2, true ,false, false, false);
this.fpSpread1.ActiveSheet.Cells[selectedCell.BeginRow, selectedCell.BeginCol, selectedCell.EndRow, selectedCell.EndCol].Border = leftborder; |