Enum ImageButtonStyle
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
ResimDüğmesiStili
ImageButton
için stili belirten bir enum.
BORDERLESS
varsayılan değerdir; çerçevesiz basit bir resim düğmesi oluşturur.
FILLED
düğmelerinin ImageButton
ile ayarlayabileceğiniz bir arka plan rengi vardır.
Bir enum'u çağırmak için üst sınıfını, adını ve özelliğini çağırırsınız. Örneğin,
CardService.ImageButtonStyle.BORDERLESS
.
Özellikler
Mülk | Tür | Açıklama |
BORDERLESS | Enum | Kenarlıksız resim düğmesi. Varsayılan. |
OUTLINED | Enum | Net arka plana sahip resim düğmesi. |
FILLED | Enum | Renkli arka planlı resim düğmesi. |
FILLED_TONAL | Enum | Doldurulmuş ve kenarlıklandırılmış düğmeler arasında alternatif bir orta yol olan resim düğmesi. |
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\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. |"]]