Sets the active SpreadView to the specified object. If the workbook passed in is null, sets this object to be the active SpreadView.
            
            
            
 Syntax
Syntax
| Visual Basic (Usage) |  Copy Code | 
|---|
| Dim instance As SpreadView
Dim workbook As SpreadView
Dim value As Boolean
 
value = instance.SetActiveWorkbook(workbook) | 
Parameters
- workbook
- SpreadView object workbook
Return Value
Boolean: 
true if successful; 
false otherwise
 
            
						
            
            
            
             Example
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 Basic |  Copy Code | 
|---|
| Dim sv As New FarPoint.Win.Spread.SpreadView(FpSpread1)
sv.SetActiveWorkbook(FpSpread1.GetRootWorkbook) | 
 Requirements
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
See Also