wrapStrategy property

String? wrapStrategy
getter/setter pair

The wrap strategy for the value in the cell. Possible string values are:

  • "WRAP_STRATEGY_UNSPECIFIED" : The default value, do not use.
  • "OVERFLOW_CELL" : Lines that are longer than the cell width will be written in the next cell over, so long as that cell is empty. If the next cell over is non-empty, this behaves the same as CLIP. The text will never wrap to the next line unless the user manually inserts a new line. Example: | First sentence. | | Manual newline that is very long. <- Text continues into next cell | Next newline. |
  • "LEGACY_WRAP" : This wrap strategy represents the old Google Sheets wrap strategy where words that are longer than a line are clipped rather than broken. This strategy is not supported on all platforms and is being phased out. Example: | Cell has a | | loooooooooo| <- Word is clipped. | word. |
  • "CLIP" : Lines that are longer than the cell width will be clipped. The text will never wrap to the next line unless the user manually inserts a new line. Example: | First sentence. | | Manual newline t| <- Text is clipped | Next newline. |
  • "WRAP" : Words that are longer than a line are wrapped at the character level rather than clipped. Example: | Cell has a | | loooooooooo| <- Word is broken. | ong word. |

Implementation

core.String? wrapStrategy;