Enum SheetType
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ชีตประเภท
ชีตประเภทต่างๆ ที่อยู่ในสเปรดชีตได้
หากต้องการเรียกใช้ enum ให้เรียกคลาสหลัก ชื่อ และพร็อพเพอร์ตี้ของ enum นั้น เช่น
SpreadsheetApp.SheetType.GRID
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
GRID | Enum | ชีตที่มีตารางกริด ซึ่งเป็นประเภทเริ่มต้น |
OBJECT | Enum | ชีตที่มีออบเจ็กต์ที่ฝังอยู่รายการเดียว เช่น EmbeddedChart |
DATASOURCE | Enum | ชีตที่มี DataSource |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eSheetType\u003c/code\u003e defines the different types of sheets within a spreadsheet, including grid, object, and datasource.\u003c/p\u003e\n"],["\u003cp\u003eTo reference a specific sheet type, use the syntax \u003ccode\u003eSpreadsheetApp.SheetType.property\u003c/code\u003e, replacing "property" with the desired type like \u003ccode\u003eGRID\u003c/code\u003e or \u003ccode\u003eOBJECT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSheets can contain grids, embedded objects (charts), or serve as datasources.\u003c/p\u003e\n"]]],["SpreadsheetApp's `SheetType` enum defines the possible sheet types within a spreadsheet. These types include `GRID`, representing a standard grid-based sheet; `OBJECT`, a sheet containing an embedded object like a chart; and `DATASOURCE`, a sheet linked to a data source. Enum properties are accessed via `SpreadsheetApp.SheetType.PROPERTY_NAME`. The grid sheet type is set as the default option.\n"],null,["# Enum SheetType\n\nSheetType\n\nThe different types of sheets that can exist in a spreadsheet.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.SheetType.GRID`. \n\n### Properties\n\n| Property | Type | Description |\n|--------------|--------|----------------------------------------------------------------------------------------------------------------------------|\n| `GRID` | `Enum` | A sheet containing a grid. This is the default type. |\n| `OBJECT` | `Enum` | A sheet containing a single embedded object such as an [EmbeddedChart](/apps-script/reference/spreadsheet/embedded-chart). |\n| `DATASOURCE` | `Enum` | A sheet containing a [DataSource](/apps-script/reference/spreadsheet/data-source). |"]]