研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
blockly > Field > size_
Field.size_ 属性
获取此字段的大小。由于 getSize() 和 updateSize() 会产生副作用,因此对于希望在设置/获取大小时调整字段边界,但又不触发不必要的渲染或其他副作用的子类,此方法可用作 shim。请注意,如果子类替换了 get 或 set 方法,则必须同时替换这两者;实现可以直接调用 super,但必须符合 JS 规范。
Signature:
protected get size_(): Size;
protected set size_(newValue: Size);
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["`size_` is a protected property of the `Field` class in Blockly, storing dimensions as a `Size` object."],["It represents the size of the field, likely encompassing width and height."],["Access and modification of `size_` are restricted to the `Field` class and its subclasses due to its protected status."]]],[]]