public final class TextFormat extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TextFormat() |
| Modifier and Type | Method and Description |
|---|---|
TextFormat |
clone() |
Boolean |
getBold()
True if the text is bold.
|
String |
getFontFamily()
The font family.
|
Integer |
getFontSize()
The size of the font.
|
Color |
getForegroundColor()
The foreground color of the text.
|
ColorStyle |
getForegroundColorStyle()
The foreground color of the text.
|
Boolean |
getItalic()
True if the text is italicized.
|
Boolean |
getStrikethrough()
True if the text has a strikethrough.
|
Boolean |
getUnderline()
True if the text is underlined.
|
TextFormat |
set(String fieldName,
Object value) |
TextFormat |
setBold(Boolean bold)
True if the text is bold.
|
TextFormat |
setFontFamily(String fontFamily)
The font family.
|
TextFormat |
setFontSize(Integer fontSize)
The size of the font.
|
TextFormat |
setForegroundColor(Color foregroundColor)
The foreground color of the text.
|
TextFormat |
setForegroundColorStyle(ColorStyle foregroundColorStyle)
The foreground color of the text.
|
TextFormat |
setItalic(Boolean italic)
True if the text is italicized.
|
TextFormat |
setStrikethrough(Boolean strikethrough)
True if the text has a strikethrough.
|
TextFormat |
setUnderline(Boolean underline)
True if the text is underlined.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getBold()
null for nonepublic TextFormat setBold(Boolean bold)
bold - bold or null for nonepublic String getFontFamily()
null for nonepublic TextFormat setFontFamily(String fontFamily)
fontFamily - fontFamily or null for nonepublic Integer getFontSize()
null for nonepublic TextFormat setFontSize(Integer fontSize)
fontSize - fontSize or null for nonepublic Color getForegroundColor()
null for nonepublic TextFormat setForegroundColor(Color foregroundColor)
foregroundColor - foregroundColor or null for nonepublic ColorStyle getForegroundColorStyle()
null for nonepublic TextFormat setForegroundColorStyle(ColorStyle foregroundColorStyle)
foregroundColorStyle - foregroundColorStyle or null for nonepublic Boolean getItalic()
null for nonepublic TextFormat setItalic(Boolean italic)
italic - italic or null for nonepublic Boolean getStrikethrough()
null for nonepublic TextFormat setStrikethrough(Boolean strikethrough)
strikethrough - strikethrough or null for nonepublic Boolean getUnderline()
null for nonepublic TextFormat setUnderline(Boolean underline)
underline - underline or null for nonepublic TextFormat set(String fieldName, Object value)
set in class GenericJsonpublic TextFormat clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.