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


In This Topic
    GetActiveWorkbook Method
    In This Topic
    Gets the active view (SpreadView object).
    Syntax
    'Declaration
     
    Public Function GetActiveWorkbook() As SpreadView
    'Usage
     
    Dim instance As SpreadView
    Dim value As SpreadView
     
    value = instance.GetActiveWorkbook()
    public SpreadView GetActiveWorkbook()

    Return Value

    Active workbook (SpreadView object)

    Example
    This example uses the GetActiveWorkbook method.
    FarPoint.Win.Spread.SpreadView sv;
    sv = fpSpread1.GetRootWorkbook();
    label1.Text = sv.GetActiveWorkbook().ToString();
    
    Dim sv As FarPoint.Win.Spread.SpreadView
    sv = FpSpread1.GetRootWorkbook
    Label1.Text = sv.GetActiveWorkbook().ToString()
    
    See Also