好吧,让我们开始吧。 假设我们想要将边界添加到从A2单元格到H6单元格范围的范围内。 请务必记住,Aspose中的单元格索引是基于零的。 所以A2单元格具有1行和列0
的指标定义范围
Dim range = current_worksheet.Cells.CreateRange(1, 0, 5, 8)
设置边界
range.SetOutlineBorder(Aspose.Cells.BorderType.TopBorder,Aspose.Cells.CellBorderType.Thick,Drawing.Color.Blue)
range.SetOutlineBorder(Aspose.Cells.BorderType.BottomBorder,Aspose.Cells.CellBorderType.Thick, Drawing.Color.Blue)
range.SetOutlineBorder(Aspose.Cells.BorderType.LeftBorder,Aspose.Cells.CellBorderType.Thick, Drawing.Color.Blue)
range.SetOutlineBorder(Aspose.Cells.BorderType.RightBorder,Aspose.Cells.CellBorderType.Thick, Drawing.Color.Blue)
这就是它!
由于没有回应,我会写出所描述的方法,并将其发布到这里供将来使用。 – ZX80 2013-02-13 09:04:38