Enum ColumnType
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.
Loạicột
Liệt kê các loại dữ liệu hợp lệ cho các cột trong DataTable
.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ:
Charts.ColumnType.DATE
.
Thuộc tính
Thuộc tính | Loại | Mô tả |
DATE | Enum | Tương ứng với giá trị ngày. |
NUMBER | Enum | Tương ứng với giá trị số. |
STRING | Enum | Tương ứng với giá trị chuỗi. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eUpdateDraftActionResponse\u003c/code\u003e allows you to programmatically modify email drafts, such as adding recipients, subject lines, and content.\u003c/p\u003e\n"],["\u003cp\u003eIt supports inserting various types of content including plain text, HTML, and immutable HTML (non-editable).\u003c/p\u003e\n"],["\u003cp\u003eYou can specify where the content should be inserted within the draft using \u003ccode\u003eUpdateDraftBodyType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateDraftActionResponse\u003c/code\u003e includes a \u003ccode\u003eprintJson()\u003c/code\u003e method for debugging purposes.\u003c/p\u003e\n"],["\u003cp\u003eIt provides specific actions for updating recipients (To, CC, BCC) and the email subject.\u003c/p\u003e\n"]]],["The `ColumnType` enumeration defines valid data types for `DataTable` columns. It includes three properties: `DATE`, representing date values; `NUMBER`, representing numerical values; and `STRING`, representing string values. To use a specific type, reference it through `Charts.ColumnType`, followed by the desired property name (e.g., `Charts.ColumnType.DATE`). These are the only types allowed in the table.\n"],null,["# Enum ColumnType\n\nColumnType\n\nAn enumeration of the valid data types for columns in a [DataTable](/apps-script/reference/charts/data-table).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCharts.ColumnType.DATE`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|-------------------------------|\n| `DATE` | `Enum` | Corresponds to date values. |\n| `NUMBER` | `Enum` | Corresponds to number values. |\n| `STRING` | `Enum` | Corresponds to string values. |"]]