Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Căn chỉnhnội dung
Căn chỉnh nội dung cho Shape hoặc TableCell. Các chế độ căn chỉnh được hỗ trợ tương ứng với các loại neo văn bản được xác định trước theo tiêu chuẩn ECMA-376.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ: SlidesApp.ContentAlignment.TOP.
Thuộc tính
Thuộc tính
Loại
Mô tả
UNSUPPORTED
Enum
Một chế độ căn chỉnh nội dung không được hỗ trợ.
TOP
Enum
Căn chỉnh nội dung ở đầu trình giữ nội dung. Tương ứng với ECMA-376 ST_TextAnchoringType "t".
MIDDLE
Enum
Căn chỉnh nội dung vào giữa phần giữ nội dung. Tương ứng với ECMA-376 ST_TextAnchoringType "ctr".
BOTTOM
Enum
Căn chỉnh nội dung xuống cuối trình giữ nội dung. Tương ứng với ECMA-376 ST_TextAnchoringType "b".
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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'. |"]]