FpSpread1.ActiveSheetView.Cells[18, 12].Border.BorderColorRight = Color.Black;
FpSpread1.ActiveSheetView.Cells[18, 12].Border.BorderStyleRight = BorderStyle.Solid;
FpSpread1.ActiveSheetView.Cells[18, 12].Border.BorderSizeRight = 2;
用上面这种方式设置边框就会出问题,用下面的就没问题:
FarPoint.Web.Spread.Border border = new FarPoint.Web.Spread.Border();
border.BorderColorRight = System.Drawing.Color.Black;
border.BorderStyleRight = BorderStyle.Solid;
border.BorderSizeRight = 1;
FpSpread1.ActiveSheetView.Cells[18, 12].Border = border;
这是什么原因??
|