Class SolidFill
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
SolidFill
단색 채우기
SolidFill
객체는 분리되고 변경 불가능하므로 생성된 후 이루어진 변경사항이 반영되지 않습니다.
자세한 문서
getAlpha()
[0, 1.0] 범위의 색상 불투명도를 가져옵니다. 여기서 1.0은 완전히 불투명함을 의미합니다.
리턴
Number
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColor()
채우기 색상을 가져옵니다.
리턴
Color
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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`"]]