調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロック体 > アイコン > CommentIcon > WEIGHT
このアイコンの他のアイコンに対する相対的な重み付け。重み値が大きいアイコンは、ブロックの最後のほうにレンダリングされます。
署名:
static readonly WEIGHT = 3;
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-04 UTC。
[null,null,["最終更新日 2024-11-04 UTC。"],[[["`icons.CommentIcon.WEIGHT` is a static read-only property that determines the relative rendering position of the comment icon on a block."],["This property has a value of 3, indicating that the comment icon is rendered towards the end of the block, after icons with lower weight values."]]],["The `CommentIcon.WEIGHT` property determines an icon's rendering position relative to other icons on a block. It's a static, read-only property set to a value of 3. Higher positive `WEIGHT` values result in the icon being placed further towards the end of the block during rendering. This property is used to manage icon layout and prioritization on a block.\n"]]