調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >[ブロック] >getDescendants
Block.getDescendants() メソッド
この内部に直接的または間接的にネストされているブロックをすべて検索します。このブロックをリストに追加します。価値、主張、および次の記述が含まれます。出力タブ上の接続またはそれ以前のステートメントはすべて除外されます。ブロックは必要に応じて位置で並べ替えられます。表します。
署名:
getDescendants(ordered: boolean): this[];
パラメータ
パラメータ |
型 |
説明 |
注文 |
ブール値 |
true の場合にリストを並べ替えます。 |
戻り値:
this[]
ブロックのフラット配列。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["The `getDescendants()` method retrieves all blocks nested directly or indirectly within a given block, including the block itself, value and statement inputs, and following statements, but excluding output connections and preceding statements."],["The returned list is a flattened array of blocks and can be optionally sorted by position from top to bottom using the `ordered` boolean parameter."]]],[]]