Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
blockly > Kolom > getTextElement
Metode Field.getTextElement()
Mendapatkan elemen teks.
Tanda Tangan:
protected getTextElement(): SVGTextElement;
Hasil:
SVGTextElement
Elemen teks.
Pengecualian
Error jika elemen teks tidak ditentukan.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-08-22 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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"]]