Enum ImageButtonStyle
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
画像ボタンのスタイル
ImageButton
のスタイルを指定する列挙型。
BORDERLESS
はデフォルトです。境界のないシンプルな画像ボタンをレンダリングします。FILLED
ボタンの背景色は ImageButton
で設定できます。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
CardService.ImageButtonStyle.BORDERLESS
です。
プロパティ
プロパティ | タイプ | 説明 |
BORDERLESS | Enum | 枠線のない画像ボタン。デフォルトです。 |
OUTLINED | Enum | 背景が透明な画像ボタン。 |
FILLED | Enum | 背景が色付きの画像ボタン。 |
FILLED_TONAL | Enum | 塗りつぶしボタンと枠線ボタンの中間的なデザインの画像ボタン。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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. |"]]