Overload | Description |
---|---|
Item(Int32) | Gets or sets the sheet (SheetView object) at the specified position in the collection. |
Item(String) | Gets or sets the sheet (SheetView object) at the specified position in the collection. |
Exception | Description |
---|---|
System.Exception | Specified sheet index is invalid; must be between 0 and total number of sheets in the collection |
System.ArgumentNullException | Sheet index is not specified (that is, specified index is null) |
This example sets the sheet properties as the specified index. C# does not support the Item property. The same behavior can be accomplished with the index of the Sheets property.
C# | Copy Code |
---|---|
fpSpread1.Sheets.Count = 3; fpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always; fpSpread1.Sheets[0].ColumnCount = 2; |
Visual Basic | Copy Code |
---|---|
FpSpread1.Sheets.Count = 3 FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always FpSpread1.Sheets.Item(0).ColumnCount = 2 |
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