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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
Reference
SheetViewCollection ClassSheetViewCollection Members
Remove Method