A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/apps-script/reference/spreadsheet/text-style-builder below:

Class TextStyleBuilder | Apps Script

Class TextStyleBuilder

Stay organized with collections Save and categorize content based on your preferences.

TextStyleBuilder

A builder for text styles.

Detailed documentation build()

Creates a text style from this builder.

Return

TextStyle — A text style created from this builder.

setBold(bold)

Sets whether or not the text is bold.

Parameters Name Type Description bold Boolean Whether or not the text is bold. Return

TextStyleBuilder — The builder for chaining.

setFontFamily(fontFamily)

Sets the text font family, such as "Arial".

Parameters Name Type Description fontFamily String The desired font family. Return

TextStyleBuilder — The builder for chaining.

setFontSize(fontSize)

Sets the text font size in points.

Parameters Name Type Description fontSize Integer The desired font size. Return

TextStyleBuilder — The builder for chaining.

setForegroundColor(cssString)

Sets the text font color.

Parameters Name Type Description cssString String The desired font color in CSS notation (such as '#ffffff' or 'white'). Return

TextStyleBuilder — The builder for chaining.

setForegroundColorObject(color)

Sets the text font color.

Parameters Name Type Description color Color The desired font color. Return

TextStyleBuilder — The builder for chaining.

setItalic(italic)

Sets whether or not the text is italic.

Parameters Name Type Description italic Boolean Whether or not the text is italic. Return

TextStyleBuilder — The builder for chaining.

setStrikethrough(strikethrough)

Sets whether or not the text has strikethrough.

Parameters Name Type Description strikethrough Boolean Whether or not the text has strikethrough. Return

TextStyleBuilder — The builder for chaining.

setUnderline(underline)

Sets whether or not the text is underlined.

Parameters Name Type Description underline Boolean Whether or not the text is underlined. Return

TextStyleBuilder — The builder for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-12-03 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-03 UTC."],[[["`TextStyleBuilder` helps create custom text styles with various formatting options."],["You can specify font family, size, color, and styles like bold, italic, underline, and strikethrough."],["It provides methods like `setBold`, `setFontFamily`, `setFontSize`, and others to define text attributes."],["Use the `build()` method to create a `TextStyle` object with your defined formatting."],["This builder enables flexible and detailed control over text presentation in Google Apps Script."]]],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4