majorDimension property

String? majorDimension
getter/setter pair

The major dimension that results should use.

For example, if the spreadsheet data is: A1=1,B1=2,A2=3,B2=4, then a request that selects that range and sets majorDimension=ROWS returns [[1,2],[3,4]], whereas a request that sets majorDimension=COLUMNS returns [[1,3],[2,4]]. Possible string values are:

  • "DIMENSION_UNSPECIFIED" : The default value, do not use.
  • "ROWS" : Operates on the rows of a sheet.
  • "COLUMNS" : Operates on the columns of a sheet.

Implementation

core.String? majorDimension;