Class SolidFill
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
KatıDoldurma
Düz renkli dolgu.
SolidFill
nesneleri ayrılmış ve değiştirilemez olduğundan, oluşturulduktan sonra yapılan değişiklikleri yansıtmaz.
Yöntemler
Yöntem | Dönüş türü | Kısa açıklama |
getAlpha() | Number | Rengin opaklığını [0, 1, 0] aralığında alır. 1,0 değeri tamamen opak anlamına gelir. |
getColor() | Color | Dolguyu rengini alın. |
Ayrıntılı dokümanlar
getAlpha()
Rengin opaklığını [0, 1, 0] aralığında alır. 1,0 değeri tamamen opak anlamına gelir.
Return
Number
Yetkilendirme
Bu yöntemi kullanan komut dosyalarının aşağıdaki kapsamlardan bir veya daha fazlası için yetkilendirilmesi gerekir:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColor()
Dolguyu rengini alın.
Return
Color
Yetkilendirme
Bu yöntemi kullanan komut dosyalarının aşağıdaki kapsamlardan bir veya daha fazlası için yetkilendirilmesi gerekir:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 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`"]]