Class SolidFill
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Preenchimento sólido
Um preenchimento de cor sólida.
Os objetos SolidFill
são separados e imutáveis, portanto, não refletem as mudanças feitas
depois de serem criados.
Métodos
Método | Tipo de retorno | Breve descrição |
getAlpha() | Number | Receba a opacidade da cor, no intervalo de [0, 1,0], em que 1,0 significa totalmente opaco. |
getColor() | Color | Receba a cor do preenchimento. |
Documentação detalhada
getAlpha()
Receba a opacidade da cor, no intervalo de [0, 1,0], em que 1,0 significa totalmente opaco.
Retornar
Number
Autorização
Os scripts que usam esse método exigem autorização com um ou mais dos seguintes escopos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColor()
Receba a cor do preenchimento.
Retornar
Color
Autorização
Os scripts que usam esse método exigem autorização com um ou mais dos seguintes escopos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eSolidFill\u003c/code\u003e represents a solid color fill used in Google Slides, and these objects are immutable, meaning they won't change after creation.\u003c/p\u003e\n"],["\u003cp\u003eYou can get the opacity of the fill using \u003ccode\u003egetAlpha()\u003c/code\u003e, which returns a number between 0 and 1, where 1 is fully opaque.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetColor()\u003c/code\u003e method allows you to retrieve the color of the fill as a \u003ccode\u003eColor\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eTo use these methods, your script needs authorization with specific scopes related to Google Presentations.\u003c/p\u003e\n"]]],[],null,["# Class SolidFill\n\nSolidFill\n\nA solid color fill.\n\n\n`Solid``Fill` objects are detached and immutable, so do not reflect changes made after\nthey have been created. \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------|----------------------------------------------|----------------------------------------------------------------------------------------------|\n| [getAlpha()](#getAlpha()) | `Number` | Get the opacity of the color, in the interval from \\[0, 1.0\\], where 1.0 means fully opaque. |\n| [getColor()](#getColor()) | [Color](/apps-script/reference/slides/color) | Get the color of the fill. |\n\nDetailed documentation\n----------------------\n\n### `get``Alpha()`\n\nGet the opacity of the color, in the interval from \\[0, 1.0\\], where 1.0 means fully opaque.\n\n#### Return\n\n\n`Number`\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``Color()`\n\nGet the color of the fill.\n\n#### Return\n\n\n[Color](/apps-script/reference/slides/color)\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`"]]