public final class TextElement
extends com.google.api.client.json.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 Slides API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TextElement() |
| Modifier and Type | Method and Description |
|---|---|
TextElement |
clone() |
AutoText |
getAutoText()
A TextElement representing a spot in the text that is dynamically replaced with content that
can change over time.
|
Integer |
getEndIndex()
The zero-based end index of this text element, exclusive, in Unicode code units.
|
ParagraphMarker |
getParagraphMarker()
A marker representing the beginning of a new paragraph.
|
Integer |
getStartIndex()
The zero-based start index of this text element, in Unicode code units.
|
TextRun |
getTextRun()
A TextElement representing a run of text where all of the characters in the run have the same
TextStyle.
|
TextElement |
set(String fieldName,
Object value) |
TextElement |
setAutoText(AutoText autoText)
A TextElement representing a spot in the text that is dynamically replaced with content that
can change over time.
|
TextElement |
setEndIndex(Integer endIndex)
The zero-based end index of this text element, exclusive, in Unicode code units.
|
TextElement |
setParagraphMarker(ParagraphMarker paragraphMarker)
A marker representing the beginning of a new paragraph.
|
TextElement |
setStartIndex(Integer startIndex)
The zero-based start index of this text element, in Unicode code units.
|
TextElement |
setTextRun(TextRun textRun)
A TextElement representing a run of text where all of the characters in the run have the same
TextStyle.
|
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 AutoText getAutoText()
null for nonepublic TextElement setAutoText(AutoText autoText)
autoText - autoText or null for nonepublic Integer getEndIndex()
null for nonepublic TextElement setEndIndex(Integer endIndex)
endIndex - endIndex or null for nonepublic ParagraphMarker getParagraphMarker()
null for nonepublic TextElement setParagraphMarker(ParagraphMarker paragraphMarker)
paragraphMarker - paragraphMarker or null for nonepublic Integer getStartIndex()
null for nonepublic TextElement setStartIndex(Integer startIndex)
startIndex - startIndex or null for nonepublic TextRun getTextRun()
null for nonepublic TextElement setTextRun(TextRun textRun)
textRun - textRun or null for nonepublic TextElement set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TextElement clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.