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;

सामान लौटाना:

यह | शून्य

वह ब्लॉक (अगर कोई है) जो मौजूदा ब्लॉक के आस-पास है.