Spread Windows Forms 7.0 Product Documentation
Item Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetViewCollection Class : Item Property


Glossary Item Box

Gets or sets the sheet (SheetView object) at the specified position in the collection.

Overload List

OverloadDescription
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.  

Exceptions

ExceptionDescription
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)

Example

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 BasicCopy Code
FpSpread1.Sheets.Count = 3
FpSpread1.TabStripPolicy = FarPoint.Win.Spread.TabStripPolicy.Always
FpSpread1.Sheets.Item(0).ColumnCount = 2

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.