Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > utils > Rect > getWidth
Metodo utils.Rect.getWidth()
Restituisce la larghezza del rettangolo.
Firma:
getWidth(): number;
Restituisce:
numero
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-05-16 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-05-16 UTC."],[[["The `getWidth()` method, belonging to the `Rect` class within the `utils` namespace of Blockly, retrieves the width of the rectangle."],["It returns a numerical value representing the width of the rectangle."]]],["The `getWidth()` method, part of the `utils.Rect` class, is designed to retrieve the width of a rectangle. It takes no parameters and returns a numerical value representing the rectangle's width. This method is used to determine the horizontal size or extent of a rectangular object within the system.\n"]]