この例では、SheetViewオブジェクトをアクティブシートに割り当て、Borderオブジェクトを作成します。罫線をシートのすべてのセルに適用し、セル間隔を5に増やします。
FarPoint.Web.Spread.SheetView sv = FpSpread1.ActiveSheetView;
FarPoint.Web.Spread.Border bord = new FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Teal, 2);
int i, j;
for (i = 0; i <= 2; i++)
{
for (j = 0; j <= 3; j++)
sv.Cells[i, j].Border = bord;
}
sv.CellSpacing = 5;
Dim sv As FarPoint.Web.Spread.SheetView
Dim bord As New FarPoint.Web.Spread.Border(BorderStyle.Dotted, Color.Teal, 2)
Dim i, j As Integer
sv = FpSpread1.ActiveSheetView
For i = 0 To 2
For j = 0 To 3
sv.Cells(i, j).Border = bord
Next j
Next i
sv.CellSpacing = 5