DeleteSheets Method
Applies To
fpSpread control
Description
Deletes the specified sheet or sheets.
Syntax
C++
BOOL CSpreadSheet::DeleteSheets(short SheetIndex, short SheetCnt);
Visual Basic
fpSpread1.DeleteSheets(ByVal SheetIndex As Integer, ByVal SheetCnt As Integer) As Boolean
Parameters
The following parameters are available:
Parameter | Description |
---|---|
SheetIndex | Sheet index of first sheet to delete |
SheetCnt | Number of sheets to delete |
Remarks
Deleting sheets changes the number of sheets in the control, as reflected by the SheetCount property.
If the SheetCount property is one and DeleteSheets is used then the sheet will be deleted and a new sheet will be added.
Return Type
True if the sheets are deleted successfully; false otherwise.
See Also
SheetCount property
InsertSheets, MoveSheets methods
DLL Correspondence
SSDeleteSheets function