研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >IToolbox >isHorizontal
获取工具箱是否处于水平状态。
Signature:
isHorizontal(): boolean;
返回:
布尔值
如果工具箱是水平的,则为 true;如果工具箱是垂直的,则为 false。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-20。
[null,null,["最后更新时间 (UTC):2024-09-20。"],[[["The `isHorizontal()` method, part of the `IToolbox` interface in Blockly, determines the orientation of the toolbox."],["It returns `true` if the toolbox is horizontally aligned and `false` if it's vertically aligned, providing a boolean indicator of its layout."]]],["The `IToolbox.isHorizontal()` method determines the toolbox's orientation. It returns a boolean value: `true` if the toolbox is arranged horizontally, and `false` if it's arranged vertically. The method takes no input parameters and directly indicates the toolbox's current layout. The core action is to check and report the orientation.\n"]]