গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
ব্লকলি > ব্লক রেন্ডারিং > কনস্ট্যান্টপ্রোভাইডার > গেটব্লক স্টাইল
blockRendering.ConstantProvider.getBlockStyle() পদ্ধতি
প্রদত্ত ব্লক শৈলী নামের জন্য BlockStyle পায়।
স্বাক্ষর:
getBlockStyle(blockStyleName: string | null): BlockStyle;
পরামিতি
প্যারামিটার | টাইপ | বর্ণনা |
---|
ব্লক স্টাইল নাম | স্ট্রিং | নাল | ব্লক শৈলীর নাম। |
রিটার্ন:
ব্লক স্টাইল
নামযুক্ত ব্লক শৈলী, অথবা একটি ডিফল্ট শৈলী যদি প্রদত্ত নামের সাথে কোন শৈলী পাওয়া না যায়।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-01-04 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-01-04 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `getBlockStyle` method retrieves the visual style (BlockStyle) associated with a given block style name."],["If a block style with the specified name isn't found, a default style is returned instead."],["It accepts a single argument, `blockStyleName`, which is either a string representing the style name or null."]]],["The `getBlockStyle()` method retrieves a `BlockStyle` object based on a provided `blockStyleName` (a string or null). It takes the style name as a parameter. If a style with the given name exists, it is returned; otherwise, a default style is provided. The method's return type is `BlockStyle`. This function is part of the `ConstantProvider` class within the `blockRendering` namespace.\n"]]