コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
blockly > アイコン > CommentState
コメント アイコンの保存状態の形式。
署名:
export interface CommentState
プロパティ
プロパティ |
修飾子 |
タイプ |
説明 |
height |
|
数値 |
(省略可)コメント バブルの高さ。 |
固定済みですか? |
|
ブール値 |
(省略可)コメントが開いている場合は true、そうでない場合は false。 |
テキスト? |
|
文字列 |
(省略可)コメントのテキスト。 |
width? |
|
数値 |
(省略可)コメント バブルの幅。 |
x? |
|
数値 |
(省略可)コメント バブルの X 座標。 |
y? |
|
数値 |
(省略可)コメント バブルの Y 座標。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["The `CommentState` interface defines the data structure for saving a comment icon's state. It includes optional properties for `height` and `width` (both numbers) to define the comment bubble's dimensions. `pinned` (boolean) indicates whether the comment is open, and `text` (string) stores the comment's textual content. These properties allow for the preservation of a comment's size, visibility, and content.\n"],null,[]]