Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > Campo > getTextContent
Metodo Field.getTextContent()
Recupera i contenuti testuali.
Firma:
protected getTextContent(): Text;
Resi:
Testo
I contenuti testuali.
Eccezioni
Un errore se i contenuti di testo non sono definiti.
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-07-25 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-07-25 UTC."],[[["The `getTextContent()` method retrieves the textual content of a Blockly Field."],["If the text content is undefined, this method will throw an error."],["The method's return type is `Text`, representing the fetched content."]]],["The `getTextContent()` method, part of the `Field` class, retrieves the text content of a field. It is a protected method and returns a `Text` object. If the text content is undefined, the method will throw an error. This method's primary function is to provide access to the textual data associated with a field object.\n"]]