Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
blockly > Feld > getTextElement
Methode "Field.getTextElement()"
Ruft das Textelement ab.
Unterschrift:
protected getTextElement(): SVGTextElement;
Gibt zurück:
SVGTextElement
Das Textelement.
Ausnahmen
Ein Fehler, wenn das Textelement nicht definiert ist.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-08-22 (UTC)."],[[["The `getTextElement()` method retrieves the SVG text element associated with the field."],["This method is protected, meaning it's primarily for internal use within Blockly."],["If the text element hasn't been defined, calling this method will result in an error."],["The method returns an SVGTextElement object representing the field's text."]]],["The `getTextElement()` method, part of the `Field` class, retrieves the text element associated with a field. It returns an `SVGTextElement`. The method is protected, meaning it's intended for internal class use or by subclasses. If the text element is not defined, the method will throw an error. The primary function of this method is to provide access to the visual text representation of the field.\n"]]