Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > ToolboxCategory > getColour_
Pobiera kolor lub styl kategorii.
Podpis:
protected getColour_(categoryDef: CategoryInfo): string;
Parametry
| Parametr |
Typ |
Opis |
| categoryDef |
CategoryInfo |
Obiekt z informacjami o kategorii. |
Zwroty:
ciąg znaków
Kolor szesnastkowy kategorii.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]