excol
Options
All
  • Public
  • Public/Protected
  • All
Menu

Spreadsheet class.

Hierarchy

  • Spreadsheet

Index

Constructors

constructor

Properties

_numColumns

_numColumns: number

_numRows

_numRows: number

Methods

addEditor

    • Adds the given user to the list of editors for the Spreadsheet. If the user was already on the list of viewers, this method promotes the user out of the list of viewers.

    Adds the given user to the list of editors for the Spreadsheet.

    Parameters

    • user: User | string

    Returns Spreadsheet

addEditors

addMenu

  • addMenu(name: string, subMenus: Object[]): void

addNamedRanges

addViewer

addViewers

appendRow

  • appendRow(columns: Array<any>): Sheet

deleteColumn

  • deleteColumn(columnPosition: number): Sheet

deleteColumns

  • deleteColumns(columnPosition: number, howMany: number): Sheet

deleteRow

  • deleteRow(rowPosition: number): Sheet

deleteRows

  • deleteRows(rowPosition: number, howMany: number): Sheet

deleteSheet

  • deleteSheet(sheet: Sheet): void

duplicateActiveSheet

  • duplicateActiveSheet(): void

getActiveCell

getActiveRange

  • getActiveRange(): Range

getActiveSheet

  • getActiveSheet(): Sheet

getDataRange

  • Returns a Range corresponding to the dimensions in which data is present. This is functionally equivalent to creating a Range bounded by A1 and (Range.getLastColumn(), Range.getLastRow()).

    Returns Range

getEditors

  • getEditors(): User[]

getId

  • getId(): number

getLastColumn

  • getLastColumn(): number

getLastRow

  • getLastRow(): number

getName

  • getName(): string

getNamedRanges

getNumSheets

  • getNumSheets(): number

getRange

  • getRange(a1Notation: string): Range

getSheetByName

  • getSheetByName(name: string): Sheet | null

getSheetValues

  • getSheetValues(startRow: any, startColumn: any, numRows: any, numColumns: any): any[]
  • Returns the rectangular grid of values for this range starting at the given coordinates.

    Parameters

    • startRow: any
    • startColumn: any
    • numRows: any
    • numColumns: any

    Returns any[]

getSheets

getViewers

  • getViewers(): User[]

init

  • init(__namedParameters: object): void
  • Initialize Sheet.

    Parameters

    • __namedParameters: object
      • cellValue: undefined | CellValue
      • name: string
      • numColumns: number

        Column dimension size

      • numRows: number

        Row dimension size

    Returns void

insertColumnAfter

  • insertColumnAfter(afterPosition: number): Sheet

insertColumnBefore

  • insertColumnBefore(beforePosition: number): Sheet

insertColumnsAfter

  • insertColumnsAfter(afterPosition: number, howMany: number): Sheet

insertColumnsBefore

  • insertColumnsBefore(beforePosition: number, howMany: number): Sheet

insertRowAfter

  • insertRowAfter(afterPosition: number): Sheet

insertRowBefore

  • insertRowBefore(beforePosition: number): Sheet

insertRowsAfter

  • insertRowsAfter(afterPosition: number, howMany: number): Sheet

insertRowsBefore

  • insertRowsBefore(beforePosition: number, howMany: number): Sheet

insertSheet

  • insertSheet(sheetIndex?: undefined | number, options?: any): Sheet
  • Inserts a new sheet in the spreadsheet, with a default name. As a side effect, it makes it the active sheet.

    Parameters

    • Optional sheetIndex: undefined | number
    • Optional options: any

    Returns Sheet

removeNamedRanges

setActiveRange

  • setActiveRange(range: any): Range

setActiveSheet

  • setActiveSheet(sheet: any): Sheet

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc