調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >[ブロック] >getStyleName
Block.getStyleName() メソッド
ブロック スタイルの名前を取得します。
署名:
getStyleName(): string;
戻り値:
文字列
ブロック スタイルの名前。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-21 UTC。
[null,null,["最終更新日 2024-08-21 UTC。"],[[["This method retrieves the name of the style applied to the block."],["It returns the style name as a string."],["The `getStyleName()` method belongs to the `Block` class within the Blockly library."]]],["The `Block.getStyleName()` method retrieves the name of a block's style. It is a function that, when called, returns a string. The string returned is the name that identifies the specific style applied to the block. The method's signature is `getStyleName(): string;`. It does not take any input arguments and will return the style name.\n"]]