Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Engelle > getParent
Block.getParent() yöntemi
Bu blok üst düzeydeyse üst bloku veya boş değeri döndürün. Üst blok, önceki bağlantıya bağlı blok (bir ifade bloğu için) veya çıkış bağlantısına bağlı bloktur (bir değer bloğu için).
İmza:
getParent(): this | null;
Şunu döndürür:
bu | boş
Geçerli bloğu içeren blok (varsa).
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-25 UTC.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],["The `Block.getParent()` method retrieves the parent block of a given block. It returns either the parent block instance or `null` if the block is at the top level. The parent is determined by the block's connection: the previous connection for statement blocks or the output connection for value blocks. The method's signature indicates it returns either `this` (the parent block) or `null`.\n"]]