Spread Windows Forms 7.0 Product Documentation
SetActiveWorkbook Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SpreadView Class : SetActiveWorkbook Method


workbook
SpreadView object workbook

Glossary Item Box

Sets the active SpreadView to the specified object. If the workbook passed in is null, sets this object to be the active SpreadView.

Syntax

Visual Basic (Declaration) 
Public Function SetActiveWorkbook( _
   ByVal workbook As SpreadView _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As SpreadView
Dim workbook As SpreadView
Dim value As Boolean
 
value = instance.SetActiveWorkbook(workbook)
C# 
public bool SetActiveWorkbook( 
   SpreadView workbook
)

Parameters

workbook
SpreadView object workbook

Return Value

Boolean: true if successful; false otherwise

Example

This example sets the active workbook.
C#Copy Code
FarPoint.Win.Spread.SpreadView sv = new FarPoint.Win.Spread.SpreadView(fpSpread1);
sv.SetActiveWorkbook(fpSpread1.GetRootWorkbook);
  
Visual BasicCopy Code
Dim sv As New FarPoint.Win.Spread.SpreadView(FpSpread1)
sv.SetActiveWorkbook(FpSpread1.GetRootWorkbook)

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.