ValueRenderOption
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
値が出力でどのようにレンダリングされるかを指定します。
列挙型 |
FORMATTED_VALUE |
値は、セルの書式設定に従ってレスポンスで計算および書式設定されます。書式設定は、リクエスト元のユーザーの言語 / 地域ではなく、スプレッドシートの言語 / 地域に基づきます。たとえば、A1 が 1.23 で、A2 が =A1 であり、通貨として書式設定されている場合、A2 は "$1.23" を返します。 |
UNFORMATTED_VALUE |
値は計算されますが、返信ではフォーマットされません。たとえば、A1 が 1.23 で、A2 が =A1 であり、通貨として書式設定されている場合、A2 は数値 1.23 を返します。 |
FORMULA |
値は計算されません。返信には数式が含まれます。たとえば、A1 が 1.23 、A2 が =A1 、通貨として書式設定されている場合、A2 は "=A1" を返します。 スプレッドシートでは、日付と時刻の値は小数値として扱われます。これにより、数式で算術演算を実行できます。日時値の解釈の詳細については、日時値についてをご覧ください。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-22 UTC。
[null,null,["最終更新日 2025-03-22 UTC。"],[],[],null,["# ValueRenderOption\n\nDetermines how values should be rendered in the output.\n\n| Enums ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `FORMATTED_VALUE` | Values will be calculated \\& formatted in the response according to the cell's formatting. Formatting is based on the spreadsheet's locale, not the requesting user's locale. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return `\"$1.23\"`. |\n| `UNFORMATTED_VALUE` | Values will be calculated, but not formatted in the reply. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then `A2` would return the number `1.23`. |\n| `FORMULA` | Values will not be calculated. The reply will include the formulas. For example, if `A1` is `1.23` and `A2` is `=A1` and formatted as currency, then A2 would return `\"=A1\"`. Sheets treats date and time values as decimal values. This lets you perform arithmetic on them in formulas. For more information on interpreting date and time values, see [About date \\& time values](https://developers.google.com/workspace/sheets/api/guides/formats#about_date_time_values). |"]]