blockly > Block > getSurroundParent

Block.getSurroundParent()-Methode

Return the parent block that surrounds the current block, or null if this block has no surrounding block. Ein übergeordneter Block kann einfach die vorherige Anweisung sein, während der umgebende Block eine if-Anweisung, eine während-Schleife usw. ist.

Unterschrift:

getSurroundParent(): this | null;

Gibt zurück:

dies | null

Block (falls vorhanden), der den aktuellen Block umgibt.