Class TextStyleBuilder
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
টেক্সট স্টাইল নির্মাতা টেক্সট শৈলী জন্য একটি নির্মাতা.
বিস্তারিত ডকুমেন্টেশন
build()
এই নির্মাতা থেকে একটি পাঠ্য শৈলী তৈরি করে।
প্রত্যাবর্তন
Text Style
— এই বিল্ডার থেকে তৈরি করা একটি টেক্সট স্টাইল।
set Bold(bold)
টেক্সট বোল্ড কিনা তা সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
bold | Boolean | লেখাটি বোল্ড হোক বা না হোক। |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
set Font Family(fontFamily)
পাঠ্য ফন্ট পরিবার সেট করে, যেমন "Arial"।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
font Family | String | পছন্দসই ফন্ট পরিবার। |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
set Font Size(fontSize)
টেক্সট ফন্ট সাইজ পয়েন্টে সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
font Size | Integer | পছন্দসই ফন্ট সাইজ। |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
set Foreground Color(cssString)
পাঠ্য ফন্টের রঙ সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
css String | String | CSS স্বরলিপিতে পছন্দসই ফন্টের রঙ (যেমন '#ffffff' বা 'white' )। |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
set Foreground Color Object(color)
পাঠ্য ফন্টের রঙ সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
color | Color | পছন্দসই ফন্ট রঙ। |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
set Italic(italic)
টেক্সট তির্যক কিনা তা সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
italic | Boolean | লেখাটি তির্যক হোক বা না হোক। |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
set Strikethrough(strikethrough)
পাঠ্যটিতে স্ট্রাইকথ্রু আছে কিনা তা সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
strikethrough | Boolean | টেক্সট স্ট্রাইকথ্রু আছে কি না. |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
set Underline(underline)
টেক্সট আন্ডারলাইন করা হয় কি না তা সেট করে।
পরামিতি
নাম | টাইপ | বর্ণনা |
---|
underline | Boolean | লেখাটি আন্ডারলাইন করা হোক বা না হোক। |
প্রত্যাবর্তন
Text Style Builder
— চেইনিংয়ের জন্য নির্মাতা।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eTextStyleBuilder\u003c/code\u003e helps create custom text styles with various formatting options.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify font family, size, color, and styles like bold, italic, underline, and strikethrough.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods like \u003ccode\u003esetBold\u003c/code\u003e, \u003ccode\u003esetFontFamily\u003c/code\u003e, \u003ccode\u003esetFontSize\u003c/code\u003e, and others to define text attributes.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003ebuild()\u003c/code\u003e method to create a \u003ccode\u003eTextStyle\u003c/code\u003e object with your defined formatting.\u003c/p\u003e\n"],["\u003cp\u003eThis builder enables flexible and detailed control over text presentation in Google Apps Script.\u003c/p\u003e\n"]]],[],null,["# Class TextStyleBuilder\n\nTextStyleBuilder\n\nA builder for text styles. \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------------|------------------------------------------------------------|-------------------------------------------------|\n| [build()](#build()) | [TextStyle](/apps-script/reference/spreadsheet/text-style) | Creates a text style from this builder. |\n| [setBold(bold)](#setBold(Boolean)) | [TextStyleBuilder](#) | Sets whether or not the text is bold. |\n| [setFontFamily(fontFamily)](#setFontFamily(String)) | [TextStyleBuilder](#) | Sets the text font family, such as \"Arial\". |\n| [setFontSize(fontSize)](#setFontSize(Integer)) | [TextStyleBuilder](#) | Sets the text font size in points. |\n| [setForegroundColor(cssString)](#setForegroundColor(String)) | [TextStyleBuilder](#) | Sets the text font color. |\n| [setForegroundColorObject(color)](#setForegroundColorObject(Color)) | [TextStyleBuilder](#) | Sets the text font color. |\n| [setItalic(italic)](#setItalic(Boolean)) | [TextStyleBuilder](#) | Sets whether or not the text is italic. |\n| [setStrikethrough(strikethrough)](#setStrikethrough(Boolean)) | [TextStyleBuilder](#) | Sets whether or not the text has strikethrough. |\n| [setUnderline(underline)](#setUnderline(Boolean)) | [TextStyleBuilder](#) | Sets whether or not the text is underlined. |\n\nDetailed documentation\n----------------------\n\n### `build()`\n\nCreates a text style from this builder.\n\n#### Return\n\n\n[TextStyle](/apps-script/reference/spreadsheet/text-style) --- A text style created from this builder.\n\n*** ** * ** ***\n\n### `set``Bold(bold)`\n\nSets whether or not the text is bold.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------|-----------|----------------------------------|\n| `bold` | `Boolean` | Whether or not the text is bold. |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining.\n\n*** ** * ** ***\n\n### `set``Font``Family(fontFamily)`\n\nSets the text font family, such as \"Arial\".\n\n#### Parameters\n\n| Name | Type | Description |\n|----------------|----------|--------------------------|\n| `font``Family` | `String` | The desired font family. |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining.\n\n*** ** * ** ***\n\n### `set``Font``Size(fontSize)`\n\nSets the text font size in points.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------------|-----------|------------------------|\n| `font``Size` | `Integer` | The desired font size. |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining.\n\n*** ** * ** ***\n\n### `set``Foreground``Color(cssString)`\n\nSets the text font color.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------|----------|----------------------------------------------------------------------------|\n| `css``String` | `String` | The desired font color in CSS notation (such as `'#ffffff'` or `'white'`). |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining.\n\n*** ** * ** ***\n\n### `set``Foreground``Color``Object(color)`\n\nSets the text font color.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------|---------------------------------------------------|-------------------------|\n| `color` | [Color](/apps-script/reference/spreadsheet/color) | The desired font color. |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining.\n\n*** ** * ** ***\n\n### `set``Italic(italic)`\n\nSets whether or not the text is italic.\n\n#### Parameters\n\n| Name | Type | Description |\n|----------|-----------|------------------------------------|\n| `italic` | `Boolean` | Whether or not the text is italic. |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining.\n\n*** ** * ** ***\n\n### `set``Strikethrough(strikethrough)`\n\nSets whether or not the text has strikethrough.\n\n#### Parameters\n\n| Name | Type | Description |\n|-----------------|-----------|--------------------------------------------|\n| `strikethrough` | `Boolean` | Whether or not the text has strikethrough. |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining.\n\n*** ** * ** ***\n\n### `set``Underline(underline)`\n\nSets whether or not the text is underlined.\n\n#### Parameters\n\n| Name | Type | Description |\n|-------------|-----------|----------------------------------------|\n| `underline` | `Boolean` | Whether or not the text is underlined. |\n\n#### Return\n\n\n[TextStyleBuilder](#) --- The builder for chaining."]]