Enum ImageButtonStyle
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ImageButtonStyle
מאפיין enum שמציין את הסגנון של ImageButton
.
BORDERLESS
הוא ברירת המחדל. הוא יוצר לחצן תמונה פשוט ללא מסגרת.
לחצני FILLED
כוללים צבע רקע שאפשר להגדיר באמצעות ImageButton
.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
CardService.ImageButtonStyle.BORDERLESS
.
מאפיינים
נכס | סוג | תיאור |
BORDERLESS | Enum | לחצן תמונה ללא מסגרת. ברירת מחדל. |
OUTLINED | Enum | לחצן תמונה עם רקע שקוף. |
FILLED | Enum | לחצן תמונה עם רקע צבעוני. |
FILLED_TONAL | Enum | לחצן תמונה עם פתרון ביניים חלופי בין לחצנים מלאים ללחצנים עם קו מתאר. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eImageButtonStyle is used to define the style of an ImageButton in Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eThere are four styles available: \u003ccode\u003eBORDERLESS\u003c/code\u003e (default), \u003ccode\u003eOUTLINED\u003c/code\u003e, \u003ccode\u003eFILLED\u003c/code\u003e, and \u003ccode\u003eFILLED_TONAL\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach style provides a different visual appearance for the image button, such as background color and border presence.\u003c/p\u003e\n"],["\u003cp\u003eStyles are accessed using the parent class and property name, like \u003ccode\u003eCardService.ImageButtonStyle.BORDERLESS\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum ImageButtonStyle\n\nImageButtonStyle\n\nAn enum that specifies the style for [ImageButton](/apps-script/reference/card-service/image-button).\n\n\n`BORDERLESS` is the default; it renders a simple image button with no border.\n`FILLED` buttons have a background color you can set with [ImageButton](/apps-script/reference/card-service/image-button).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.ImageButtonStyle.BORDERLESS`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|-------------------------------------------------------------------------------------|\n| `BORDERLESS` | `Enum` | Image button with no border. Default. |\n| `OUTLINED` | `Enum` | Image button with clear background. |\n| `FILLED` | `Enum` | Image button with colored background. |\n| `FILLED_TONAL` | `Enum` | Image button with an alternative middle ground between filled and outlined buttons. |"]]