Class: Google::Apis::SlidesV1::InsertTextRequest
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::InsertTextRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb
Overview
Inserts text into a shape or a table cell.
Instance Attribute Summary collapse
-
#cell_location ⇒ Google::Apis::SlidesV1::TableCellLocation
A location of a single table cell within a table.
-
#insertion_index ⇒ Fixnum
The index where the text will be inserted, in Unicode code units, based on TextElement indexes.
-
#object_id_prop ⇒ String
The object ID of the shape or table where the text will be inserted.
-
#text ⇒ String
The text to be inserted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InsertTextRequest
constructor
A new instance of InsertTextRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InsertTextRequest
Returns a new instance of InsertTextRequest
1427 1428 1429 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1427 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cell_location ⇒ Google::Apis::SlidesV1::TableCellLocation
A location of a single table cell within a table.
Corresponds to the JSON property cellLocation
1394 1395 1396 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1394 def cell_location @cell_location end |
#insertion_index ⇒ Fixnum
The index where the text will be inserted, in Unicode code units, based
on TextElement indexes.
The index is zero-based and is computed from the start of the string.
The index may be adjusted to prevent insertions inside Unicode grapheme
clusters. In these cases, the text will be inserted immediately after the
grapheme cluster.
Corresponds to the JSON property insertionIndex
1404 1405 1406 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1404 def insertion_index @insertion_index end |
#object_id_prop ⇒ String
The object ID of the shape or table where the text will be inserted.
Corresponds to the JSON property objectId
1409 1410 1411 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1409 def object_id_prop @object_id_prop end |
#text ⇒ String
The text to be inserted.
Inserting a newline character will implicitly create a new
ParagraphMarker at that index.
The paragraph style of the new paragraph will be copied from the paragraph
at the current insertion index, including lists and bullets.
Text styles for inserted text will be determined automatically, generally
preserving the styling of neighboring text. In most cases, the text will be
added to the TextRun that exists at the
insertion index.
Some control characters (U+0000-U+0008, U+000C-U+001F) and characters
from the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF)
will be stripped out of the inserted text.
Corresponds to the JSON property text
1425 1426 1427 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1425 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1432 1433 1434 1435 1436 1437 |
# File 'generated/google/apis/slides_v1/classes.rb', line 1432 def update!(**args) @cell_location = args[:cell_location] if args.key?(:cell_location) @insertion_index = args[:insertion_index] if args.key?(:insertion_index) @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop) @text = args[:text] if args.key?(:text) end |