Spread Windows Forms 6.0 Product Documentation
Reset Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : Reset Method


Glossary Item Box

Resets the view on this sheet to its original state.

Syntax

Visual Basic (Declaration) 
Public Sub Reset() 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
 
instance.Reset()
C# 
public void Reset()

Example

This example resets the sheet to its default values.
C#Copy Code
fpSpread1.ActiveSheet.ColumnCount = 3;
fpSpread1.ActiveSheet.RowCount = 3;
listBox1.Items.Add(fpSpread1.ActiveSheet.ColumnCount);
listBox1.Items.Add(fpSpread1.ActiveSheet.RowCount);
fpSpread1.ActiveSheet.Reset();
listBox1.Items.Add(fpSpread1.ActiveSheet.ColumnCount);
listBox1.Items.Add(fpSpread1.ActiveSheet.RowCount);
Visual BasicCopy Code
FpSpread1.ActiveSheet.ColumnCount = 3
FpSpread1.ActiveSheet.RowCount = 3
ListBox1.Items.Add(FpSpread1.ActiveSheet.ColumnCount)
ListBox1.Items.Add(FpSpread1.ActiveSheet.RowCount)
FpSpread1.ActiveSheet.Reset()
ListBox1.Items.Add(FpSpread1.ActiveSheet.ColumnCount)
ListBox1.Items.Add(FpSpread1.ActiveSheet.RowCount)

Requirements

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

See Also

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