Spread ASP.NET 6.0 Product Documentation
MoveToSheetView(String,Boolean) Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread.Chart Namespace > SpreadChart Class > MoveToSheetView Method : MoveToSheetView(String,Boolean) Method


sheetName
Name of the new sheet view.
activateNewSheetView
if set to true activate the new sheet view.

Glossary Item Box

Moves the current chart to the new sheet view.

Syntax

Visual Basic (Declaration) 
Public Overloads Function MoveToSheetView( _
   ByVal sheetName As String, _
   ByVal activateNewSheetView As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SpreadChart
Dim sheetName As String
Dim activateNewSheetView As Boolean
Dim value As Boolean
 
value = instance.MoveToSheetView(sheetName, activateNewSheetView)
C# 
public bool MoveToSheetView( 
   string sheetName,
   bool activateNewSheetView
)

Parameters

sheetName
Name of the new sheet view.
activateNewSheetView
if set to true activate the new sheet view.

Return Value

true if the move is successful; otherwise, return false

Example

This example uses the MoveToSheetView method.
C#Copy Code
FpSpread1.Sheets.Count = 2;
FpSpread1.Sheets[0].AddChart(0, 0, typeof(FarPoint.Web.Chart.BarSeries), 400, 400, 0, 0, FarPoint.Web.Chart.ChartViewType.View2D, true);
FarPoint.Web.Spread.Chart.SpreadChart chart = FpSpread1.Sheets[0].Charts[0];
chart.MoveToSheetView("Sheet2", true);
Visual BasicCopy Code
FpSpread1.Sheets.Count = 2
FpSpread1.Sheets(0).AddChart(0, 0, GetType(FarPoint.Web.Chart.BarSeries), 400, 400, 0, 0,FarPoint.Web.Chart.ChartViewType.View2D, True)
Dim chart As New FarPoint.Web.Spread.Chart.SpreadChart
chart = FpSpread1.Sheets(0).Charts(0)
chart.MoveToSheetView("Sheet2", True)

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.