this.fpSpread1.ActiveSheet.SetInsideBorder(new FarPoint.Win.Spread.Model.CellRange(0, 2, RowIndex, 13), new LineBorder(Color.Black, 1, true, true, true, true));
this.fpSpread1.ActiveSheet.Cells[1, 1].Border = new LineBorder(Color.Black, 2, false, true, true, true);
this.fpSpread1.ActiveSheet.Cells[1, 2].Border = new LineBorder(Color.Black, 2, false, true, false, true);
this.fpSpread1.ActiveSheet.Cells[2, 1].Border = new LineBorder(Color.Black, 2, false, false, true, false);
foreach (int lineNo in lineList)
{
this.fpSpread1.ActiveSheet.Cells[lineNo, 1].Border = new LineBorder(Color.Black, 2, false, true, true, false);
this.fpSpread1.ActiveSheet.Cells[lineNo, 2].Border = new LineBorder(Color.Black, 2, false, true, false, true);
this.fpSpread1.ActiveSheet.Cells[lineNo + 1, 1].Border = new LineBorder(Color.Black, 2, false, false, true, false);
}
lineList.Clear();
this.fpSpread1.ActiveSheet.Cells[RowIndex, 1].Border = new LineBorder(Color.Black, 2, false, true, true, true);
this.fpSpread1.ActiveSheet.Cells[RowIndex, 2].Border = new LineBorder(Color.Black, 2, false, true, false, false);
this.fpSpread1.ActiveSheet.Cells[RowIndex, 3, RowIndex, 14].Border = new LineBorder(Color.Black, 2, false, true, false, false);
设置border的代码 |