blockly > Obszar roboczy > getWidth
Metoda Workspace.getWidth()
Zwraca przesunięcie obszaru roboczego w poziomie. Służy do zapewniania zgodności LTR/RTL w języku XML. Nie dotyczy obszaru roboczego bez interfejsu graficznego.
Podpis:
getWidth(): number;
Zwroty:
liczba
Szerokość.
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: 2024-08-22 UTC.
[null,null,["Ostatnia aktualizacja: 2024-08-22 UTC."],[[["The `Workspace.getWidth()` method returns the horizontal offset of the workspace, primarily for ensuring compatibility between left-to-right and right-to-left languages."],["This method is mainly used for XML purposes and does not apply to headless workspaces."],["The return value is a number representing the width of the workspace."]]],[]]