blockly > บล็อก > getSurroundParent
เมธอด Block.getSurroundParent()
Return the parent block that surrounds the current block, or null if this block has no surrounding block. บล็อกระดับบนอาจเป็นเพียงคำสั่งก่อนหน้า ในขณะที่การบล็อกที่ล้อมรอบเป็นคำสั่ง if ส่วนลูป ฯลฯ
ลายเซ็น:
getSurroundParent(): this | null;
ส่งกลับ:
นี้ | null
บล็อก (หากมี) ที่ล้อมรอบบล็อกปัจจุบัน