Enum GroupControlTogglePosition
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
组控件切换位置
一个枚举,表示组控件切换开关可能的状态。
如需调用枚举,您可以调用其父类、名称和属性。例如
SpreadsheetApp.GroupControlTogglePosition.BEFORE
。
属性
属性 | 类型 | 说明 |
BEFORE | Enum | 控件切换开关位于组之前的位置(索引较低)。 |
AFTER | Enum | 控件切换开关位于组后面的位置(在较高的编号处)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eGroupControlTogglePosition\u003c/code\u003e determines where the toggle control appears for grouped rows or columns in a spreadsheet.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eBEFORE\u003c/code\u003e to place the toggle before the group and \u003ccode\u003eAFTER\u003c/code\u003e to place it after.\u003c/p\u003e\n"],["\u003cp\u003eYou can access these options using \u003ccode\u003eSpreadsheetApp.GroupControlTogglePosition.BEFORE\u003c/code\u003e or \u003ccode\u003eSpreadsheetApp.GroupControlTogglePosition.AFTER\u003c/code\u003e within your Apps Script code.\u003c/p\u003e\n"]]],["`GroupControlTogglePosition` is an enumeration with two properties: `BEFORE` and `AFTER`. `BEFORE` signifies the control toggle is positioned before the group, corresponding to lower indices. `AFTER` indicates the control toggle is after the group, aligning with higher indices. To access these properties, use the format `SpreadsheetApp.GroupControlTogglePosition.PROPERTY_NAME`, replacing `PROPERTY_NAME` with either `BEFORE` or `AFTER`. This describes where the user will see the control toggle relative to the group.\n"],null,["# Enum GroupControlTogglePosition\n\nGroupControlTogglePosition\n\nAn enumeration representing the possible positions that a group control toggle can have.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.GroupControlTogglePosition.BEFORE`. \n\n### Properties\n\n| Property | Type | Description |\n|----------|--------|-------------------------------------------------------------------------------|\n| `BEFORE` | `Enum` | The position where the control toggle is before the group (at lower indices). |\n| `AFTER` | `Enum` | The position where the control toggle is after the group (at higher indices). |"]]