Enum SpacingMode
Stay organized with collections
Save and categorize content based on your preferences.
SpacingMode
The different modes for paragraph spacing.
To call an enum, you call its parent class, name, and property. For example,
SlidesApp.SpacingMode.NEVER_COLLAPSE
.
Properties
Property | Type | Description |
UNSUPPORTED | Enum | A spacing mode that is not supported. |
NEVER_COLLAPSE | Enum | Paragraph spacing is always rendered. |
COLLAPSE_LISTS | Enum | Paragraph spacing is skipped between list elements. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["\u003cp\u003e\u003ccode\u003eSpacingMode\u003c/code\u003e controls the spacing behavior between paragraphs in Google Slides.\u003c/p\u003e\n"],["\u003cp\u003eYou can access specific spacing modes like \u003ccode\u003eNEVER_COLLAPSE\u003c/code\u003e and \u003ccode\u003eCOLLAPSE_LISTS\u003c/code\u003e using \u003ccode\u003eSlidesApp.SpacingMode\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNEVER_COLLAPSE\u003c/code\u003e ensures consistent paragraph spacing, while \u003ccode\u003eCOLLAPSE_LISTS\u003c/code\u003e removes spacing between list items.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUNSUPPORTED\u003c/code\u003e indicates a spacing mode that is not currently functional.\u003c/p\u003e\n"]]],["`SpacingMode` defines how paragraph spacing is handled. It includes three modes: `UNSUPPORTED`, indicating an unsupported mode; `NEVER_COLLAPSE`, where spacing is always rendered; and `COLLAPSE_LISTS`, where spacing is omitted between list items. To use a specific mode, call it using the syntax: `SlidesApp.SpacingMode.MODE_NAME`, where MODE_NAME is one of the enum properties.\n"],null,["# Enum SpacingMode\n\nSpacingMode\n\nThe different modes for paragraph spacing.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.SpacingMode.NEVER_COLLAPSE`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------|--------|-----------------------------------------------------|\n| `UNSUPPORTED` | `Enum` | A spacing mode that is not supported. |\n| `NEVER_COLLAPSE` | `Enum` | Paragraph spacing is always rendered. |\n| `COLLAPSE_LISTS` | `Enum` | Paragraph spacing is skipped between list elements. |"]]