Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
blockly > Engelle > setStyle
Block.setStyle() yöntemi
Blokların stil ve renk değerlerini belirleyin.
İmza:
setStyle(blockStyleName: string): void;
Parametreler
Parametre |
Tür |
Açıklama |
blockStyleName |
dize |
Blok stilinin adı. |
Şunu döndürür:
geçersiz
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.setStyle()` method sets a block's style and color. It accepts one parameter, `blockStyleName`, which is a string representing the desired style's name. This method modifies the block's visual appearance. The method's signature is `setStyle(blockStyleName: string): void;`, indicating it returns nothing after execution. It's used to customize the block's look, using a predefined style name.\n"]]