Class: Google::Apis::SlidesV1::TextElement

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/slides_v1/classes.rb,
lib/google/apis/slides_v1/representations.rb,
lib/google/apis/slides_v1/representations.rb

Overview

A TextElement describes the content of a range of indices in the text content of a Shape or TableCell.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextElement

Returns a new instance of TextElement.



4185
4186
4187
# File 'lib/google/apis/slides_v1/classes.rb', line 4185

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auto_textGoogle::Apis::SlidesV1::AutoText

A TextElement kind that represents auto text. Corresponds to the JSON property autoText



4162
4163
4164
# File 'lib/google/apis/slides_v1/classes.rb', line 4162

def auto_text
  @auto_text
end

#end_indexFixnum

The zero-based end index of this text element, exclusive, in Unicode code units. Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


4168
4169
4170
# File 'lib/google/apis/slides_v1/classes.rb', line 4168

def end_index
  @end_index
end

#paragraph_markerGoogle::Apis::SlidesV1::ParagraphMarker

A TextElement kind that represents the beginning of a new paragraph. Corresponds to the JSON property paragraphMarker



4173
4174
4175
# File 'lib/google/apis/slides_v1/classes.rb', line 4173

def paragraph_marker
  @paragraph_marker
end

#start_indexFixnum

The zero-based start index of this text element, in Unicode code units. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


4178
4179
4180
# File 'lib/google/apis/slides_v1/classes.rb', line 4178

def start_index
  @start_index
end

#text_runGoogle::Apis::SlidesV1::TextRun

A TextElement kind that represents a run of text that all has the same styling. Corresponds to the JSON property textRun



4183
4184
4185
# File 'lib/google/apis/slides_v1/classes.rb', line 4183

def text_run
  @text_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4190
4191
4192
4193
4194
4195
4196
# File 'lib/google/apis/slides_v1/classes.rb', line 4190

def update!(**args)
  @auto_text = args[:auto_text] if args.key?(:auto_text)
  @end_index = args[:end_index] if args.key?(:end_index)
  @paragraph_marker = args[:paragraph_marker] if args.key?(:paragraph_marker)
  @start_index = args[:start_index] if args.key?(:start_index)
  @text_run = args[:text_run] if args.key?(:text_run)
end