[]
        
(Showing Draft Content)

Working with the Active Sheet

The active sheet is the sheet that currently receives any user interaction and displays on top of other sheets. You can specify the active sheet programmatically by using the ActiveSheet property of the FpSpread object. You can also specify the index of the active sheet by using the ActiveSheetIndex property.

Usually, the active sheet is displayed on top of other sheets.

Method to use

You can use ActiveSheet as a shortcut object for the active sheet when specifying properties of the sheet.

Example

The following example set properties of the active sheet and assign the active sheet to sheet number 2.

// Create three sheets in the component.
fpSpread1.Sheets.Count = 3;
// Set third sheet (in zero-based index) be set to active sheet.
fpSpread1.ActiveSheetIndex = 2;
// Set some properties of the active sheet.
fpSpread1.ActiveSheet.ColumnCount = 8;
fpSpread1.InterfaceRenderer = NULL;
fpSpread1.ActiveSheet.GrayAreaBackColor = Color.Purple;
' Create three sheets in the component.
fpSpread1.Sheets.Count = 3
' Set third sheet (in zero-based index) be set to active sheet.
fpSpread1.ActiveSheetIndex = 2
' Set some properties of the active sheet.
fpSpread1.ActiveSheet.ColumnCount = 8
fpSpread1.InterfaceRenderer = Nothing
fpSpread1.ActiveSheet.GrayAreaBackColor = Color.Purple

See Also

Sheets

Working with Multiple Sheets

Adding a Sheet

Removing a Sheet

Showing or Hiding a Sheet

Moving a Sheet

Copying and Inserting a Sheet

Adding a Title and Subtitle to a Sheet

Placing Child Controls on a Sheet

Displaying a Footer for Columns or Groups

Adding a Tag to a Sheet

Working with 1-Based Indexing