Class Color
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
مستندات تفصيلية
asRgbColor()
يحوّل هذا اللون إلى RgbColor.
الإرجاع
RgbColor — اللون بتنسيق RgbColor
عمليات الطرح
Error — إذا لم يكن اللون RgbColor
التفويض
تتطلب البرامج النصية التي تستخدم هذه الطريقة تفويضًا باستخدام نطاق واحد أو أكثر من النطاقات التالية: النطاقات
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
asThemeColor()
يحوّل هذا اللون إلى ThemeColor.
الإرجاع
ThemeColor — اللون بتنسيق ThemeColor
عمليات الطرح
Error — إذا لم يكن اللون ThemeColor
التفويض
تتطلب البرامج النصية التي تستخدم هذه الطريقة تفويضًا باستخدام نطاق واحد أو أكثر من النطاقات التالية: النطاقات
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getColorType()
يحصل على نوع هذا اللون.
الإرجاع
ColorType — نوع اللون
التفويض
تتطلب البرامج النصية التي تستخدم هذه الطريقة تفويضًا باستخدام نطاق واحد أو أكثر من النطاقات التالية: النطاقات
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-04-13 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2026-04-13 (حسب التوقيت العالمي المتفَّق عليه)"],[],["The provided content describes an opaque color object with three methods. `asRgbColor()` converts the color to an RgbColor, returning an `RgbColor`. `asThemeColor()` converts the color to a ThemeColor, returning a `ThemeColor`. `getColorType()` identifies the color's type, returning a `ColorType`. All methods require specific authorization scopes, including `https://www.googleapis.com/auth/presentations.currentonly` and `https://www.googleapis.com/auth/presentations`. Errors are thrown if the color type is not compatible with the requested conversion.\n"]]