Restez organisé à l'aide des collections Enregistrez et classez les contenus selon vos préférences.
Mise en pagepositionnée
Énumération qui spécifie comment mettre en page un PositionedImage par rapport au texte environnant.
Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple, DocumentApp.PositionedLayout.ABOVE_TEXT.
Propriétés
Propriété
Type
Description
ABOVE_TEXT
Enum
L'image est placée au-dessus du texte.
BREAK_BOTH
Enum
L'image coupe le texte à gauche et à droite.
BREAK_LEFT
Enum
L'image coupe le texte à gauche.
BREAK_RIGHT
Enum
L'image coupe le texte à droite.
WRAP_TEXT
Enum
L'image est entourée de texte.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003e\u003ccode\u003ePositionedLayout\u003c/code\u003e is an enum used to define the placement of a \u003ccode\u003ePositionedImage\u003c/code\u003e relative to the surrounding text in a Google Doc.\u003c/p\u003e\n"],["\u003cp\u003eIt offers five options: \u003ccode\u003eABOVE_TEXT\u003c/code\u003e, \u003ccode\u003eBREAK_BOTH\u003c/code\u003e, \u003ccode\u003eBREAK_LEFT\u003c/code\u003e, \u003ccode\u003eBREAK_RIGHT\u003c/code\u003e, and \u003ccode\u003eWRAP_TEXT\u003c/code\u003e, controlling how the image interacts with the text flow.\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, call the enum using \u003ccode\u003eDocumentApp.PositionedLayout\u003c/code\u003e followed by the desired property, like \u003ccode\u003eDocumentApp.PositionedLayout.WRAP_TEXT\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum PositionedLayout\n\nPositionedLayout\n\nAn enumeration that specifies how to lay out a [PositionedImage](/apps-script/reference/document/positioned-image) in relation to surrounding\ntext.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nDocumentApp.PositionedLayout.ABOVE_TEXT`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|--------------------------------------------------|\n| `ABOVE_TEXT` | `Enum` | The image is positioned above the text. |\n| `BREAK_BOTH` | `Enum` | The image breaks the text on the left and right. |\n| `BREAK_LEFT` | `Enum` | The image breaks the text on the left. |\n| `BREAK_RIGHT` | `Enum` | The image breaks the text on the right. |\n| `WRAP_TEXT` | `Enum` | The image is wrapped by text. |"]]