System.Collections.ArrayList coll = new System.Collections.ArrayList(2);
FarPoint.Web.Spread.SheetView sv2 = new FarPoint.Web.Spread.SheetView();
FarPoint.Web.Spread.SheetView sv3 = new FarPoint.Web.Spread.SheetView();
int i;
sv2.GridLineColor = Color.Red;
sv2.GridLines = GridLines.Vertical;
sv3.GridLineColor = Color.Yellow;
sv3.GridLines = GridLines.Horizontal;
coll.Add(sv2);
coll.Add(sv3);
FpSpread1.Sheets.Clear();
FpSpread1.Sheets.AddRange(coll);
i = FpSpread1.Sheets.IndexOf(sv3);
Response.Write("The index of the specified sheet is " + i.ToString());
Dim coll As New System.Collections.ArrayList(2)
Dim sv2 As New FarPoint.Web.Spread.SheetView
Dim sv3 As New FarPoint.Web.Spread.SheetView
Dim i As Integer
sv2.GridLineColor = Color.Red
sv2.GridLines = GridLines.Vertical
sv3.GridLineColor = Color.Yellow
sv3.GridLines = GridLines.Horizontal
coll.Add(sv2)
coll.Add(sv3)
FpSpread1.Sheets.Clear()
FpSpread1.Sheets.AddRange(coll)
i = FpSpread1.Sheets.IndexOf(sv3)
Response.Write("The index of the specified sheet is " & i.ToString())