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/autofit below:

Class Autofit | Apps Script

Class Autofit

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

Autofit

Describes the autofit settings of a shape. If a change is made that might affect text fitting within its bounding text box:

Detailed documentation disableAutofit()

Sets the AutofitType of a shape to AutofitType.NONE.

Return

Autofit — The autofit, for chaining.

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

getAutofitType()

Gets the AutofitType of the shape.

Return

AutofitType — The autofit type.

Authorization

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

getFontScale()

Gets the font scale applied to the shape. For shapes with AutofitType AutofitType.NONE or AutofitType.SHAPE_AUTOFIT, this value is the default value of 1. For AutofitType.TEXT_AUTOFIT, the value returned is what the original font size is multiplied by to fit within the shape.

Return

Number — The font scale.

Authorization

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

getLineSpacingReduction()

Gets the line spacing reduction applied to the shape. For shapes with AutofitType AutofitType.NONE or AutofitType.SHAPE_AUTOFIT, this value is the default value of 0. For AutofitType.TEXT_AUTOFIT, the returned value is the amount of spacing subtracted from the original spacing to make the text fit within the shape.

Return

Number — The line spacing.

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."],[[["Autofit settings determine how text adjusts within a shape's boundaries in Google Slides, and when modified, the settings reset to defaults, impacting font scale and line spacing."],["Developers can utilize methods like `disableAutofit()`, `getAutofitType()`, `getFontScale()`, and `getLineSpacingReduction()` to manage the Autofit behavior of shapes programmatically."],["The `getFontScale()` and `getLineSpacingReduction()` methods return default values for shapes with AutofitType.NONE or AutofitType.SHAPE_AUTOFIT, while for AutofitType.TEXT_AUTOFIT, they reflect adjustments made to fit text within the shape."],["All provided methods necessitate authorization with specific scopes like `https://www.googleapis.com/auth/presentations.currentonly` or `https://www.googleapis.com/auth/presentations` for scripts to function correctly."]]],[]]


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