Enum PositionedLayout
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Układpozycjonowany
Wyliczenie określające sposób rozmieszczania elementu PositionedImage
w stosunku do otaczającego go tekstu.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
DocumentApp.PositionedLayout.ABOVE_TEXT
.
Właściwości
Właściwość | Typ | Opis |
ABOVE_TEXT | Enum | Obraz znajduje się nad tekstem. |
BREAK_BOTH | Enum | Obraz przerywa tekst po lewej i po prawej stronie. |
BREAK_LEFT | Enum | Obraz przerywa tekst po lewej stronie. |
BREAK_RIGHT | Enum | Obraz przerywa tekst po prawej stronie. |
WRAP_TEXT | Enum | Obraz jest zawijany przez tekst. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]