Class: Google::Apis::SlidesV1::TextElement
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SlidesV1::TextElement
 
- 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
A TextElement describes the content of a range of indices in the text content of a Shape or TableCell.
Instance Attribute Summary collapse
- 
  
    
      #auto_text  ⇒ Google::Apis::SlidesV1::AutoText 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A TextElement kind that represents auto text. 
- 
  
    
      #end_index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The zero-based end index of this text element, exclusive, in Unicode code units. 
- 
  
    
      #paragraph_marker  ⇒ Google::Apis::SlidesV1::ParagraphMarker 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A TextElement kind that represents the beginning of a new paragraph. 
- 
  
    
      #start_index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The zero-based start index of this text element, in Unicode code units. 
- 
  
    
      #text_run  ⇒ Google::Apis::SlidesV1::TextRun 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A TextElement kind that represents a run of text that all has the same styling. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TextElement 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TextElement. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TextElement
Returns a new instance of TextElement
| 4109 4110 4111 | # File 'generated/google/apis/slides_v1/classes.rb', line 4109 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#auto_text ⇒ Google::Apis::SlidesV1::AutoText
A TextElement kind that represents auto text.
Corresponds to the JSON property autoText
| 4085 4086 4087 | # File 'generated/google/apis/slides_v1/classes.rb', line 4085 def auto_text @auto_text end | 
#end_index ⇒ Fixnum
The zero-based end index of this text element, exclusive, in Unicode code
units.
Corresponds to the JSON property endIndex
| 4091 4092 4093 | # File 'generated/google/apis/slides_v1/classes.rb', line 4091 def end_index @end_index end | 
#paragraph_marker ⇒ Google::Apis::SlidesV1::ParagraphMarker
A TextElement kind that represents the beginning of a new paragraph.
Corresponds to the JSON property paragraphMarker
| 4096 4097 4098 | # File 'generated/google/apis/slides_v1/classes.rb', line 4096 def paragraph_marker @paragraph_marker end | 
#start_index ⇒ Fixnum
The zero-based start index of this text element, in Unicode code units.
Corresponds to the JSON property startIndex
| 4101 4102 4103 | # File 'generated/google/apis/slides_v1/classes.rb', line 4101 def start_index @start_index end | 
#text_run ⇒ Google::Apis::SlidesV1::TextRun
A TextElement kind that represents a run of text that all has the same
styling.
Corresponds to the JSON property textRun
| 4107 4108 4109 | # File 'generated/google/apis/slides_v1/classes.rb', line 4107 def text_run @text_run end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 4114 4115 4116 4117 4118 4119 4120 | # File 'generated/google/apis/slides_v1/classes.rb', line 4114 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 |