Enum Dimension
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
มิติข้อมูล
การแจงนับเส้นทางที่เป็นไปได้ซึ่งสามารถจัดเก็บข้อมูลในสเปรดชีต
หากต้องการเรียก enum คุณจะต้องเรียกคลาส ชื่อ และพร็อพเพอร์ตี้ระดับบนสุด เช่น
SpreadsheetApp.Dimension.COLUMNS
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | Type | คำอธิบาย |
COLUMNS | Enum | มิติข้อมูลคอลัมน์ (แนวตั้ง) |
ROWS | Enum | มิติข้อมูลแถว (แนวนอน) |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003e\u003ccode\u003eDimension\u003c/code\u003e is used to specify the direction of data in a spreadsheet, either by rows or columns.\u003c/p\u003e\n"],["\u003cp\u003eTo use a dimension, refer to it using \u003ccode\u003eSpreadsheetApp.Dimension\u003c/code\u003e followed by the specific property like \u003ccode\u003eCOLUMNS\u003c/code\u003e or \u003ccode\u003eROWS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe properties \u003ccode\u003eCOLUMNS\u003c/code\u003e and \u003ccode\u003eROWS\u003c/code\u003e represent the vertical and horizontal dimensions respectively, allowing you to work with data in those directions.\u003c/p\u003e\n"]]],["The `Dimension` enum defines directions for data storage in a spreadsheet. It is accessed via its parent class, `SpreadsheetApp`, followed by its name and property, such as `SpreadsheetApp.Dimension.COLUMNS`. It contains two properties: `COLUMNS`, representing the vertical dimension, and `ROWS`, representing the horizontal dimension. These properties are used to specify whether data is oriented vertically or horizontally.\n"],null,["# Enum Dimension\n\nDimension\n\nAn enumeration of possible directions along which data can be stored in a spreadsheet.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.Dimension.COLUMNS`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------|--------|----------------------------------|\n| `COLUMNS` | `Enum` | The column (vertical) dimension. |\n| `ROWS` | `Enum` | The row (horizontal) dimension. |"]]