Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As SheetViewCollection Dim index As Integer instance.RemoveAt(index) |
Parameters
- index
- Zero-based index of the sheet to remove from the collection
Exception | Description |
---|---|
System.IndexOutOfRangeException | Specified sheet index is not valid; must be between 0 and the total number of sheets in the collection |
This example removes a sheet from the collection at the specified index.
C# | Copy Code |
---|---|
fpSpread1.Sheets.Count = 3; fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always; fpSpread1.Sheets.RemoveAt(1); |
Visual Basic | Copy Code |
---|---|
FpSpread1.Sheets.Count = 3 FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always FpSpread1.Sheets.RemoveAt(1) |
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
Reference
SheetViewCollection ClassSheetViewCollection Members
Remove Method