Spread ASP.NET 6.0 Product Documentation
Index Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetViewStateEventArgs Class : Index Property


Glossary Item Box

Gets the index of the collection that contains the sheet.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Index As Integer
Visual Basic (Usage)Copy Code
Dim instance As SheetViewStateEventArgs
Dim value As Integer
 
value = instance.Index
C# 
public int Index {get;}

Property Value

Integer sheet index

Example

C#Copy Code
private void FpSpread1SaveOrLoadSheetState(object sender, FarPoint.Web.Spread.SheetViewStateEventArgs e)
{
if (e.IsSave)
{
Session["SheetName" + e.Index] = e.SheetView.SaveViewState();
}
else
{
e.SheetView.LoadViewState("SheetName" + e.Index);
}
e.Handled = true;
}
Visual BasicCopy Code
Private Sub FpSpread1SaveOrLoadSheetState(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SheetViewStateEventArgs)
Handles FpSpread1.SaveOrLoadSheetState
If (e.IsSave) Then
Session("SheetName" & e.Index) = e.SheetView.SaveViewState()
Else
e.SheetView.LoadViewState("SheetName" & e.Index)
End If
e.Handled = True
End Sub

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.