Class Text
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পাঠ্য একটি XML Text
নোডের একটি উপস্থাপনা।
বিস্তারিত ডকুমেন্টেশন
append(text)
নোডে আগে থেকেই বিদ্যমান যেকোনো বিষয়বস্তুর সাথে প্রদত্ত টেক্সট যোগ করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
text | String | নোডে যুক্ত করার জন্য পাঠ্য |
প্রত্যাবর্তন
Text
- Text
নোড, চেইনিংয়ের জন্য
detach()
নোডটিকে এর মূল Element
নোড থেকে বিচ্ছিন্ন করে। যদি নোডের একটি অভিভাবক না থাকে, এই পদ্ধতির কোন প্রভাব নেই।
প্রত্যাবর্তন
Content
- বিচ্ছিন্ন নোড
get Parent Element()
নোডের প্যারেন্ট Element
নোড পায়। যদি নোডের একটি অভিভাবক না থাকে, এই পদ্ধতিটি null
প্রদান করে।
প্রত্যাবর্তন
Element
- প্যারেন্ট Element
নোড
get Text()
Text
নোডের পাঠ্য মান পায়।
প্রত্যাবর্তন
String
- Text
নোডের পাঠ্য মান
get Value()
নোডের প্রত্যক্ষ বা পরোক্ষ সন্তান যে সমস্ত নোডের পাঠ্য মান পায়, সেগুলি নথিতে প্রদর্শিত ক্রমে।
প্রত্যাবর্তন
String
— নোডের প্রত্যক্ষ বা পরোক্ষ সন্তান যে সমস্ত নোডের পাঠ্য মান
set Text(text)
Text
নোডের টেক্সট মান সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
text | String | টেক্সট মান সেট করতে হবে |
প্রত্যাবর্তন
Text
- Text
নোড, চেইনিংয়ের জন্য
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe \u003ccode\u003eText\u003c/code\u003e object represents a text node within an XML document and provides methods for manipulating its content.\u003c/p\u003e\n"],["\u003cp\u003eYou can use methods like \u003ccode\u003eappend()\u003c/code\u003e, \u003ccode\u003esetText()\u003c/code\u003e, and \u003ccode\u003egetText()\u003c/code\u003e to modify and retrieve the text content of the node.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edetach()\u003c/code\u003e removes the node from its parent element, while \u003ccode\u003egetParentElement()\u003c/code\u003e allows access to the parent element.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetValue()\u003c/code\u003e retrieves the text value of all child nodes, offering a way to access nested content within the text node.\u003c/p\u003e\n"]]],["The `Text` node represents XML text content. Key actions include: appending text to the node via `append(text)`, detaching the node from its parent using `detach()`, and retrieving the parent element with `getParentElement()`. Text content can be obtained using `getText()` for the node's text or `getValue()` for text of child nodes. Finally, `setText(text)` sets the text value of the node. These methods allow manipulation and reading of text in an XML structure.\n"],null,["# Class Text\n\nText\n\nA representation of an XML `Text` node. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------|-------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------|\n| [append(text)](#append(String)) | [Text](#) | Appends the given text to any content that already exists in the node. |\n| [detach()](#detach()) | [Content](/apps-script/reference/xml-service/content) | Detaches the node from its parent [Element](/apps-script/reference/xml-service/element) node. |\n| [getParentElement()](#getParentElement()) | [Element](/apps-script/reference/xml-service/element) | Gets the node's parent [Element](/apps-script/reference/xml-service/element) node. |\n| [getText()](#getText()) | `String` | Gets the text value of the `Text` node. |\n| [getValue()](#getValue()) | `String` | Gets the text value of all nodes that are direct or indirect children of the node, in the order they appear in the document. |\n| [setText(text)](#setText(String)) | [Text](#) | Sets the text value of the `Text` node. |\n\nDetailed documentation\n----------------------\n\n### `append(text)`\n\nAppends the given text to any content that already exists in the node.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|--------------------------------|\n| `text` | `String` | the text to append to the node |\n\n#### Return\n\n\n[Text](#) --- the `Text` node, for chaining\n\n*** ** * ** ***\n\n### `detach()`\n\nDetaches the node from its parent [Element](/apps-script/reference/xml-service/element) node. If the node does not have a parent,\nthis method has no effect.\n\n#### Return\n\n\n[Content](/apps-script/reference/xml-service/content) --- the detached node\n\n*** ** * ** ***\n\n### `get``Parent``Element()`\n\nGets the node's parent [Element](/apps-script/reference/xml-service/element) node. If the node does not have a parent, this method\nreturns `null`.\n\n#### Return\n\n\n[Element](/apps-script/reference/xml-service/element) --- the parent `Element` node\n\n*** ** * ** ***\n\n### `get``Text()`\n\nGets the text value of the `Text` node.\n\n#### Return\n\n\n`String` --- the text value of the `Text` node\n\n*** ** * ** ***\n\n### `get``Value()`\n\nGets the text value of all nodes that are direct or indirect children of the node, in the order\nthey appear in the document.\n\n#### Return\n\n\n`String` --- the text value of all nodes that are direct or indirect children of the node\n\n*** ** * ** ***\n\n### `set``Text(text)`\n\nSets the text value of the `Text` node.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|----------|-----------------------|\n| `text` | `String` | the text value to set |\n\n#### Return\n\n\n[Text](#) --- the `Text` node, for chaining"]]