Mit Sammlungen den Überblick behalten Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Inhaltsabgleich
Die inhaltlichen Ausrichtungen für ein Shape oder TableCell. Die unterstützten Ausrichtungen entsprechen vordefinierten Textankerungstypen aus dem ECMA-376-Standard.
Um ein Enum aufzurufen, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel: SlidesApp.ContentAlignment.TOP.
Attribute
Attribut
Typ
Beschreibung
UNSUPPORTED
Enum
Eine nicht unterstützte Inhaltsausrichtung.
TOP
Enum
Richtet den Inhalt am oberen Rand des Inhaltscontainers aus. Entspricht ECMA-376 ST_TextAnchoringType „t“.
MIDDLE
Enum
Richtet den Inhalt an der Mitte des Inhaltshalters aus. Entspricht ECMA-376 ST_TextAnchoringType „ctr“.
BOTTOM
Enum
Richtet den Inhalt am unteren Rand des Inhaltscontainers aus. Entspricht ECMA-376 ST_TextAnchoringType „b“.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-04 (UTC)."],[[["\u003cp\u003eContentAlignment refers to how content is positioned within a Shape or TableCell, like top, middle, or bottom.\u003c/p\u003e\n"],["\u003cp\u003eThese alignments are based on standard text anchoring types defined in ECMA-376.\u003c/p\u003e\n"],["\u003cp\u003eYou can use \u003ccode\u003eSlidesApp.ContentAlignment\u003c/code\u003e followed by the specific alignment (e.g., \u003ccode\u003eTOP\u003c/code\u003e, \u003ccode\u003eMIDDLE\u003c/code\u003e) to set the desired positioning in your code.\u003c/p\u003e\n"]]],[],null,["ContentAlignment\n\nThe content alignments for a [Shape](/apps-script/reference/slides/shape) or [TableCell](/apps-script/reference/slides/table-cell). The supported alignments\ncorrespond to predefined text anchoring types from the ECMA-376 standard.\n\n\n| More information on those alignments can be found in the description of the `ST_TextAnchoringType` simple type in section 20.1.10.59 of \"Office Open XML File Formats - Fundamentals and Markup Language Reference\", part 1 of [ECMA-376](https://ecma-international.org/publications-and-standards/standards/ecma-376/) 5th edition.\n\n\u003cbr /\u003e\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.ContentAlignment.TOP`. \n\nProperties\n\n| Property | Type | Description |\n|---------------|--------|-------------------------------------------------------------------------------------------------------------|\n| `UNSUPPORTED` | `Enum` | A content alignment that is not supported. |\n| `TOP` | `Enum` | Aligns the content to the top of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'. |\n| `MIDDLE` | `Enum` | Aligns the content to the middle of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'. |\n| `BOTTOM` | `Enum` | Aligns the content to the bottom of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'b'. |"]]