Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
blockly > ToolboxCategory > getColour_
Récupère la couleur ou le style d'une catégorie.
Signature :
protected getColour_(categoryDef: CategoryInfo): string;
Paramètres
Paramètre |
Type |
Description |
categoryDef |
CategoryInfo |
Objet contenant des informations sur la catégorie. |
Renvoie :
chaîne
Couleur hexadécimale de la catégorie.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/25 (UTC)."],[],["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"]]