Enum Direction
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
方向
一个枚举,表示用户可以使用箭头键在电子表格中移动的可能方向。
若要调用枚举,您可以调用其父类、名称和属性。例如
SpreadsheetApp.Direction.UP
。
属性
媒体资源 | 类型 | 说明 |
UP | Enum | 行索引递减的方向。 |
DOWN | Enum | 增加行索引的方向。 |
PREVIOUS | Enum | 列索引降序排列。 |
NEXT | Enum | 列索引递增的方向。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eSpreadsheetApp.Direction\u003c/code\u003e is an enumeration used to define movement directions within a spreadsheet using arrow keys.\u003c/p\u003e\n"],["\u003cp\u003eThe enum includes four properties: \u003ccode\u003eUP\u003c/code\u003e, \u003ccode\u003eDOWN\u003c/code\u003e, \u003ccode\u003ePREVIOUS\u003c/code\u003e, and \u003ccode\u003eNEXT\u003c/code\u003e, representing movement across rows and columns.\u003c/p\u003e\n"],["\u003cp\u003eEach property corresponds to a specific direction based on the change in row or column indices (e.g., \u003ccode\u003eUP\u003c/code\u003e for decreasing row indices, \u003ccode\u003eNEXT\u003c/code\u003e for increasing column indices).\u003c/p\u003e\n"]]],[],null,["# Enum Direction\n\nDirection\n\nAn enumeration representing the possible directions that one can move within a spreadsheet using\nthe arrow keys.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.Direction.UP`. \n\n### Properties\n\n| Property | Type | Description |\n|------------|--------|---------------------------------------------|\n| `UP` | `Enum` | The direction of decreasing row indices. |\n| `DOWN` | `Enum` | The direction of increasing row indices. |\n| `PREVIOUS` | `Enum` | The direction of decreasing column indices. |\n| `NEXT` | `Enum` | The direction of increasing column indices. |"]]