Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SpreadView Class / SetActiveWorkbook Method
SpreadView object workbook
Example


In This Topic
    SetActiveWorkbook Method
    In This Topic
    Sets the active SpreadView to the specified object. If the workbook passed in is null, sets this object to be the active SpreadView.
    Syntax
    'Declaration
     
    Public Function SetActiveWorkbook( _
       ByVal workbook As SpreadView _
    ) As Boolean
    'Usage
     
    Dim instance As SpreadView
    Dim workbook As SpreadView
    Dim value As Boolean
     
    value = instance.SetActiveWorkbook(workbook)
    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.
    FarPoint.Win.Spread.SpreadView sv = new FarPoint.Win.Spread.SpreadView(fpSpread1);
    sv.SetActiveWorkbook(fpSpread1.GetRootWorkbook);
      
    Dim sv As New FarPoint.Win.Spread.SpreadView(fpSpread1)
    sv.SetActiveWorkbook(fpSpread1.GetRootWorkbook)
    See Also