Class ListStyle
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
তালিকা শৈলী পাঠ্যের একটি পরিসরের জন্য তালিকা স্টাইলিং।
পদ্ধতি
পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
---|
apply List Preset(listPreset) | List Style | পাঠ্যের সাথে ওভারল্যাপ করা সমস্ত অনুচ্ছেদে নির্দিষ্ট List Preset প্রয়োগ করে। |
get Glyph() | String | পাঠ্যের জন্য রেন্ডার করা গ্লাইফ প্রদান করে। |
get List() | List | টেক্সটটি যে List আছে, বা টেক্সটের একটিও তালিকায় না থাকলে, বা টেক্সটের কিছু অংশ একটি তালিকায় না থাকলে, বা টেক্সট একাধিক তালিকায় থাকলে null দেখায়। |
get Nesting Level() | Integer | পাঠ্যের 0-ভিত্তিক নেস্টিং স্তর প্রদান করে। |
is In List() | Boolean | টেক্সটটি ঠিক একটি তালিকায় থাকলে true , যদি কোনও টেক্সট একটি তালিকায় না থাকে তবে false , এবং যদি শুধুমাত্র কিছু টেক্সট একটি তালিকায় থাকে বা টেক্সট একাধিক তালিকায় থাকে তাহলে null দেখায়। |
remove From List() | List Style | যে কোনো তালিকা থেকে পাঠ্যের সাথে ওভারল্যাপ করা অনুচ্ছেদগুলিকে সরিয়ে দেয়৷ |
বিস্তারিত ডকুমেন্টেশন
apply List Preset(listPreset)
পাঠ্যের সাথে ওভারল্যাপ করা সমস্ত অনুচ্ছেদে নির্দিষ্ট List Preset
প্রয়োগ করে।
প্রতিটি অনুচ্ছেদের নেস্টিং স্তর প্রতিটি অনুচ্ছেদের সামনে অগ্রণী ট্যাবগুলি গণনা করে নির্ধারিত হয়। গ্লিফ এবং সংশ্লিষ্ট অনুচ্ছেদের মধ্যে অতিরিক্ত স্থান এড়াতে, এই অগ্রণী ট্যাবগুলি এই পদ্ধতি দ্বারা সরানো হয়।
যদি অনুচ্ছেদগুলি আপডেট হওয়ার সাথে সাথে অনুচ্ছেদটি একটি মিল তালিকা প্রিসেট সহ একটি List
থাকে এবং অনুচ্ছেদগুলি আপডেট করা হয় তা ইতিমধ্যেই একটি ভিন্ন তালিকায় না থাকে, অনুচ্ছেদগুলিকে সেই পূর্ববর্তী তালিকায় যুক্ত করা হয়৷
পরামিতি
প্রত্যাবর্তন
List Style
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতিটি ব্যবহার করে তাদের নিম্নলিখিত এক বা একাধিক সুযোগের সাথে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Glyph()
পাঠ্যের জন্য রেন্ডার করা গ্লাইফ প্রদান করে। টেক্সট একাধিক অনুচ্ছেদ বিস্তৃত হলে বা টেক্সট একটি তালিকায় না থাকলে null
দেখায়।
প্রত্যাবর্তন
String
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতিটি ব্যবহার করে তাদের নিম্নলিখিত এক বা একাধিক সুযোগের সাথে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get List()
টেক্সটটি যে List
আছে, বা টেক্সটের একটিও তালিকায় না থাকলে, বা টেক্সটের কিছু অংশ একটি তালিকায় না থাকলে, বা টেক্সট একাধিক তালিকায় থাকলে null
দেখায়। টেক্সট একটি তালিকায় আছে কিনা তা নির্ধারণ করতে কল is In List()
।
প্রত্যাবর্তন
List
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতিটি ব্যবহার করে তাদের নিম্নলিখিত এক বা একাধিক সুযোগের সাথে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get Nesting Level()
পাঠ্যের 0-ভিত্তিক নেস্টিং স্তর প্রদান করে। টেক্সট একটি তালিকায় না থাকলে বা মিশ্র মান থাকলে null
দেয়।
প্রত্যাবর্তন
Integer
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতিটি ব্যবহার করে তাদের নিম্নলিখিত এক বা একাধিক সুযোগের সাথে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
is In List()
টেক্সটটি ঠিক একটি তালিকায় থাকলে true
, যদি কোনও টেক্সট একটি তালিকায় না থাকে তবে false
, এবং যদি শুধুমাত্র কিছু টেক্সট একটি তালিকায় থাকে বা টেক্সট একাধিক তালিকায় থাকে তাহলে null
দেখায়।
প্রত্যাবর্তন
Boolean
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতিটি ব্যবহার করে তাদের নিম্নলিখিত এক বা একাধিক সুযোগের সাথে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
remove From List()
যে কোনো তালিকা থেকে পাঠ্যের সাথে ওভারল্যাপ করা অনুচ্ছেদগুলিকে সরিয়ে দেয়৷
প্রতিটি অনুচ্ছেদের নেস্টিং স্তরটি সংশ্লিষ্ট অনুচ্ছেদের শুরুতে ইন্ডেন্ট যোগ করে দৃশ্যত সংরক্ষিত হয়।
প্রত্যাবর্তন
List Style
অনুমোদন
যে স্ক্রিপ্টগুলি এই পদ্ধতিটি ব্যবহার করে তাদের নিম্নলিখিত এক বা একাধিক সুযোগের সাথে অনুমোদনের প্রয়োজন হয়:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003e\u003ccode\u003eListStyle\u003c/code\u003e encompasses methods to manipulate the styling and structure of lists within text ranges in Google Slides.\u003c/p\u003e\n"],["\u003cp\u003eIt provides functionalities to apply list presets, determine nesting levels, and check if text resides within a list.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the rendered glyph or the associated \u003ccode\u003eList\u003c/code\u003e object for further manipulation.\u003c/p\u003e\n"],["\u003cp\u003eMethods are available to remove text from lists while preserving visual indentation.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with specific scopes is required to utilize these methods in your scripts.\u003c/p\u003e\n"]]],["The `ListStyle` object manages text list formatting. Key actions include: applying a `ListPreset` to paragraphs, which also adjusts nesting levels by removing leading tabs; retrieving the rendered glyph, the associated `List` object, or the nesting level. It can also check if the text is within a list, and remove text from any existing list. Additionally, removing text from a list visually preserves nesting through indenting. Each method requires specific authorization scopes.\n"],null,["# Class ListStyle\n\nListStyle\n\nThe list styling for a range of text. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------------------------|--------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [applyListPreset(listPreset)](#applyListPreset(ListPreset)) | [ListStyle](#) | Applies the specified [ListPreset](/apps-script/reference/slides/list-preset) to all of the paragraphs that overlap with the text. |\n| [getGlyph()](#getGlyph()) | `String` | Returns the rendered glyph for the text. |\n| [getList()](#getList()) | [List](/apps-script/reference/slides/list) | Returns the [List](/apps-script/reference/slides/list) the text is in, or `null` if none of the text is in a list, or part of the text is in a list, or the text is in multiple lists. |\n| [getNestingLevel()](#getNestingLevel()) | `Integer` | Returns the 0-based nesting level of the text. |\n| [isInList()](#isInList()) | `Boolean` | Returns `true` if the text is in exactly one list, `false` if none of the text is in a list, and `null` if only some of the text is in a list or if the text is in multiple lists. |\n| [removeFromList()](#removeFromList()) | [ListStyle](#) | Removes the paragraphs that overlap with the text from any lists. |\n\nDetailed documentation\n----------------------\n\n### `apply``List``Preset(listPreset)`\n\nApplies the specified [ListPreset](/apps-script/reference/slides/list-preset) to all of the paragraphs that overlap with the text.\n\nThe nesting level of each paragraph is determined by counting leading tabs in front of each\nparagraph. To avoid excess space between the glyphs and the corresponding paragraph, these\nleading tabs are removed by this method.\n\nIf the paragraph immediately before paragraphs being updated is in a [List](/apps-script/reference/slides/list) with a\nmatching list preset and the paragraphs being updated are not already in a different list, the\nparagraphs being updated are added to that preceding list.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------------|---------------------------------------------------------|-------------|\n| `list``Preset` | [ListPreset](/apps-script/reference/slides/list-preset) | |\n\n#### Return\n\n\n[ListStyle](#)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Glyph()`\n\nReturns the rendered glyph for the text. Returns `null` if the text spans more than one\nparagraph or the text is not in a list.\n\n#### Return\n\n\n`String`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``List()`\n\nReturns the [List](/apps-script/reference/slides/list) the text is in, or `null` if none of the text is in a list, or\npart of the text is in a list, or the text is in multiple lists. Call [isInList()](#isInList()) to\ndetermine whether the text is in a list.\n\n#### Return\n\n\n[List](/apps-script/reference/slides/list)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Nesting``Level()`\n\nReturns the 0-based nesting level of the text. Returns `null` if the text is not in a\nlist or there are mixed values.\n\n#### Return\n\n\n`Integer`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `is``In``List()`\n\nReturns `true` if the text is in exactly one list, `false` if none of the text is\nin a list, and `null` if only some of the text is in a list or if the text is in multiple\nlists.\n\n#### Return\n\n\n`Boolean`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `remove``From``List()`\n\nRemoves the paragraphs that overlap with the text from any lists.\n\nThe nesting level of each paragraph is visually preserved by adding indent to the start of\nthe corresponding paragraph.\n\n#### Return\n\n\n[ListStyle](#)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`"]]