تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > ToolboxCategory > getColour_
تحصل على اللون أو النمط لفئة ما.
Signature:
protected getColour_(categoryDef: CategoryInfo): string;
المعلمات
المعلمة |
النوع |
الوصف |
categoryDef |
CategoryInfo |
الكائن الذي يحتوي على معلومات عن الفئة |
المرتجعات:
سلسلة
اللون الست عشري للفئة.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `getColour_()` method retrieves the color or style for a ToolboxCategory, returning it as a hex color string."],["This method accepts a `CategoryInfo` object, which contains information about the category, to determine the appropriate color."],["The method is designated as `protected`, suggesting its primary usage is within the class or closely related components."]]],["The `getColour_()` method, part of the `ToolboxCategory` class, retrieves the color or style for a given category. It takes a `CategoryInfo` object as input, which contains the category's details. This method then returns a string representing the category's hexadecimal color. It is a protected method, meaning that is only accessible within the class itself or its derived classes.\n"]]