// Set third sheet (in zero-based index) be set to active sheet fpSpread1.ActiveSheetIndex = 2; ' Set third sheet (in zero-based index) be set to active sheet FpSpread1.ActiveSheetIndex = 2
// Add the new sheet to the control FarPoint.Win.Spread.SheetView newSheet = new FarPoint.Win.Spread.SheetView(); fpSpread1.Sheets.Add(newsheet); ' Add the new sheet to the control Dim newSheet as new FarPoint.Win.Spread.SheetView() FpSpread1.Sheets.Add(newsheet)
// Remove the second sheet fpSpread1.Sheets.Remove(fpSpread1.Sheets[1]); ' Remove the second sheet FpSpread1.Sheets.Remove(FpSpread1.Sheets(1))
// Set the first sheet to not be displayed fpSpread1.Sheets[0].Visible = false; ' Set the first sheet to not be displayed FpSpread1.Sheets(0).Visible = False
// Set the first sheet's background color to light yellow fpSpread1.Sheets[0].GrayAreaBackColor = Color.LightYellow; ' Set the first sheet's background color to light yellow FpSpread1.Sheets(0).GrayAreaBackColor = Color.LightYellow
FarPoint.Win.Spread.GridLine HGridLine = new FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Flat, Color.Red); fpSpread1.Sheets[0].HorizontalGridLine = HGridLine; Dim HGridLine As New FarPoint.Win.Spread.GridLine(FarPoint.Win.Spread.GridLineType.Flat, Color.Chartreuse) FpSpread1.Sheets(0).HorizontalGridLine = HGridLine
// Sets the background color to light blue fpSpread1.ActiveSheet.SheetCornerStyle.BackColor = Color.LightBlue; ' Sets the background color to light blue FpSpread1.ActiveSheet.SheetCornerStyle.BackColor = Color.LightBlue
// Sets the first sheet to use the Colorful2 predefined skin. FarPoint.Win.Spread.DefaultSkins.Colorful2.Apply(fpSpread1.Sheets[0]); ' Sets the first sheet to use the Colorful2 predefined skin. FarPoint.Win.Spread.DefaultSkins.Colorful2.Apply(FpSpread1.Sheets(0))