Enum PositionedLayout
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
放置的布局
一个枚举,用于指定如何将 PositionedImage
与周围文本一起排版。
如需调用枚举,您可以调用其父类、名称和属性。例如
DocumentApp.PositionedLayout.ABOVE_TEXT
。
属性
属性 | 类型 | 说明 |
ABOVE_TEXT | Enum | 图片位于文字上方。 |
BREAK_BOTH | Enum | 图片会将文本分隔到左侧和右侧。 |
BREAK_LEFT | Enum | 图片会破坏左侧的文字。 |
BREAK_RIGHT | Enum | 图片会破坏右侧的文本。 |
WRAP_TEXT | Enum | 图片被文本换行。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]