SheetXL - v0.8.0-beta.25
    Preparing search index...

    Interface IWorkbookView

    View settings for a single workbook.

    interface IWorkbookView {
        isIWorkbookView: true;
        addListeners(
            listeners: IWorkbookView.IListeners,
            options?: IListener.Options,
        ): Remove;
        getActiveSheetId(): number | null;
        getFirstTab(): number;
        getId(): string;
        getTabRatio(): number;
        getVisibility(): IWorkbookView.Visibility;
        getWindowBounds(): WindowBounds | null;
        isAutoFilterDateGrouping(): boolean;
        isMinimized(): boolean;
        isShowFormulaBar(): boolean;
        isShowHorizontalScrollbar(): boolean;
        isShowStatusBar(): boolean;
        isShowTabs(): boolean;
        isShowVerticalScrollbar(): boolean;
        setActiveSheetId(newValue: number | null): this;
        setAutoFilterDateGrouping(newValue: boolean): this;
        setFirstTab(newValue: number): this;
        setMinimized(newValue: boolean): this;
        setShowFormulaBar(newValue: boolean): this;
        setShowHorizontalScrollbar(newValue: boolean): this;
        setShowStatusBar(newValue: boolean): this;
        setShowTabs(newValue: boolean): this;
        setShowVerticalScrollbar(newValue: boolean): this;
        setTabRatio(newValue: number): this;
        setVisibility(newValue: IWorkbookView.Visibility): this;
        setWindowBounds(newValue: WindowBounds | null): this;
        toJSON(): IWorkbookView.JSON | null;
    }

    Implemented by

    Index
    isIWorkbookView: true

    For runtime type checking.

    • Identifies this view.

      Returns string

      Stable for the life of the view. A workbook can be shown through more than one view — each user in a shared workbook has their own — so anything recorded against a view (the active sheet an undo returns to, for example) names it by this id rather than holding the view itself.

    • The id of of the activeSheet.

      Parameters

      • newValue: number | null

      Returns this

      This is NOT the index of the sheet but instead the id (1 based) If the sheets have been reordered then these won't match.

    • Whether a filter's list groups dates by year, month and day.

      Parameters

      • newValue: boolean

      Returns this

      true
      
    • The first sheet tab shown in the tab strip, by sheet index: how far the tabs are scrolled.

      Parameters

      • newValue: number

      Returns this

      0
      
    • Whether the workbook's window is minimized.

      Parameters

      • newValue: boolean

      Returns this

      false
      
    • Shows the visibility of the formula bar.

      Parameters

      • newValue: boolean

      Returns this

    • show the horizontal scrollbar.

      Parameters

      • newValue: boolean

      Returns this

      true
      
    • Show the status bar.

      Parameters

      • newValue: boolean

      Returns this

      true
      
    • Shows the workbook tabs.

      Parameters

      • newValue: boolean

      Returns this

      true;
      
    • Show the vertical scrollbar.

      Parameters

      • newValue: boolean

      Returns this

      true
      
    • Specifies ratio between the workbook tabs and the horizontal scroll bar.

      Parameters

      • newValue: number

      Returns this

      600
      

      This is expressed as a percent * 1000.

    • Where the workbook's window sits on the screen, in twips (a twentieth of a point).

      Parameters

      Returns this

      null (the application places it)