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/slides/list-style below:

Class ListStyle | Apps Script

Class ListStyle

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

ListStyle

The list styling for a range of text.

Methods Method Return type Brief description applyListPreset(listPreset) ListStyle Applies the specified ListPreset to all of the paragraphs that overlap with the text. getGlyph() String Returns the rendered glyph for the text. getList() List Returns the 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. getNestingLevel() Integer Returns the 0-based nesting level of the text. 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. removeFromList() ListStyle Removes the paragraphs that overlap with the text from any lists. Detailed documentation applyListPreset(listPreset)

Applies the specified ListPreset to all of the paragraphs that overlap with the text.

The nesting level of each paragraph is determined by counting leading tabs in front of each paragraph. To avoid excess space between the glyphs and the corresponding paragraph, these leading tabs are removed by this method.

If the paragraph immediately before paragraphs being updated is in a List with a matching list preset and the paragraphs being updated are not already in a different list, the paragraphs being updated are added to that preceding list.

Parameters Return

ListStyle

Scripts that use this method require authorization with one or more of the following scopes:

getGlyph()

Returns the rendered glyph for the text. Returns null if the text spans more than one paragraph or the text is not in a list.

Return

String

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

getList()

Returns the 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. Call isInList() to determine whether the text is in a list.

Return

List

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

getNestingLevel()

Returns the 0-based nesting level of the text. Returns null if the text is not in a list or there are mixed values.

Return

Integer

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

isInList()

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.

Return

Boolean

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

removeFromList()

Removes the paragraphs that overlap with the text from any lists.

The nesting level of each paragraph is visually preserved by adding indent to the start of the corresponding paragraph.

Return

ListStyle

Authorization

Scripts that use this method require authorization with one or more of the following scopes:

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-02 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-02 UTC."],[[["`ListStyle` encompasses methods to manipulate the styling and structure of lists within text ranges in Google Slides."],["It provides functionalities to apply list presets, determine nesting levels, and check if text resides within a list."],["You can retrieve the rendered glyph or the associated `List` object for further manipulation."],["Methods are available to remove text from lists while preserving visual indentation."],["Authorization with specific scopes is required to utilize these methods in your scripts."]]],["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"]]


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