Class: Google::Apis::DocsV1::ParagraphElement
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::ParagraphElement
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb
Overview
A ParagraphElement describes content within a Paragraph.
Instance Attribute Summary collapse
-
#auto_text ⇒ Google::Apis::DocsV1::AutoText
A ParagraphElement representing a spot in the text that's dynamically replaced with content that can change over time, like a page number.
-
#column_break ⇒ Google::Apis::DocsV1::ColumnBreak
A ParagraphElement representing a column break.
-
#date_element ⇒ Google::Apis::DocsV1::DateElement
A date instance mentioned in a document.
-
#end_index ⇒ Fixnum
The zero-base end index of this paragraph element, exclusive, in UTF-16 code units.
-
#equation ⇒ Google::Apis::DocsV1::Equation
A ParagraphElement representing an equation.
-
#footnote_reference ⇒ Google::Apis::DocsV1::FootnoteReference
A ParagraphElement representing a footnote reference.
-
#horizontal_rule ⇒ Google::Apis::DocsV1::HorizontalRule
A ParagraphElement representing a horizontal line.
-
#inline_object_element ⇒ Google::Apis::DocsV1::InlineObjectElement
A ParagraphElement that contains an InlineObject.
-
#page_break ⇒ Google::Apis::DocsV1::PageBreak
A ParagraphElement representing a page break.
-
#person ⇒ Google::Apis::DocsV1::Person
A person or email address mentioned in a document.
-
#rich_link ⇒ Google::Apis::DocsV1::RichLink
A link to a Google resource (such as a file in Drive, a YouTube video, or a Calendar event).
-
#start_index ⇒ Fixnum
The zero-based start index of this paragraph element, in UTF-16 code units.
-
#text_run ⇒ Google::Apis::DocsV1::TextRun
A ParagraphElement that represents a run of text that all has the same styling.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParagraphElement
constructor
A new instance of ParagraphElement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ParagraphElement
Returns a new instance of ParagraphElement.
3768 3769 3770 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_text ⇒ Google::Apis::DocsV1::AutoText
A ParagraphElement representing a spot in the text that's dynamically replaced
with content that can change over time, like a page number.
Corresponds to the JSON property autoText
3700 3701 3702 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3700 def auto_text @auto_text end |
#column_break ⇒ Google::Apis::DocsV1::ColumnBreak
A ParagraphElement representing a column break. A column break makes the
subsequent text start at the top of the next column.
Corresponds to the JSON property columnBreak
3706 3707 3708 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3706 def column_break @column_break end |
#date_element ⇒ Google::Apis::DocsV1::DateElement
A date instance mentioned in a document.
Corresponds to the JSON property dateElement
3711 3712 3713 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3711 def date_element @date_element end |
#end_index ⇒ Fixnum
The zero-base end index of this paragraph element, exclusive, in UTF-16 code
units.
Corresponds to the JSON property endIndex
3717 3718 3719 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3717 def end_index @end_index end |
#equation ⇒ Google::Apis::DocsV1::Equation
A ParagraphElement representing an equation.
Corresponds to the JSON property equation
3722 3723 3724 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3722 def equation @equation end |
#footnote_reference ⇒ Google::Apis::DocsV1::FootnoteReference
A ParagraphElement representing a footnote reference. A footnote reference is
the inline content rendered with a number and is used to identify the footnote.
Corresponds to the JSON property footnoteReference
3728 3729 3730 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3728 def footnote_reference @footnote_reference end |
#horizontal_rule ⇒ Google::Apis::DocsV1::HorizontalRule
A ParagraphElement representing a horizontal line.
Corresponds to the JSON property horizontalRule
3733 3734 3735 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3733 def horizontal_rule @horizontal_rule end |
#inline_object_element ⇒ Google::Apis::DocsV1::InlineObjectElement
A ParagraphElement that contains an InlineObject.
Corresponds to the JSON property inlineObjectElement
3738 3739 3740 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3738 def inline_object_element @inline_object_element end |
#page_break ⇒ Google::Apis::DocsV1::PageBreak
A ParagraphElement representing a page break. A page break makes the
subsequent text start at the top of the next page.
Corresponds to the JSON property pageBreak
3744 3745 3746 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3744 def page_break @page_break end |
#person ⇒ Google::Apis::DocsV1::Person
A person or email address mentioned in a document. These mentions behave as a
single, immutable element containing the person's name or email address.
Corresponds to the JSON property person
3750 3751 3752 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3750 def person @person end |
#rich_link ⇒ Google::Apis::DocsV1::RichLink
A link to a Google resource (such as a file in Drive, a YouTube video, or a
Calendar event).
Corresponds to the JSON property richLink
3756 3757 3758 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3756 def rich_link @rich_link end |
#start_index ⇒ Fixnum
The zero-based start index of this paragraph element, in UTF-16 code units.
Corresponds to the JSON property startIndex
3761 3762 3763 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3761 def start_index @start_index end |
#text_run ⇒ Google::Apis::DocsV1::TextRun
A ParagraphElement that represents a run of text that all has the same styling.
Corresponds to the JSON property textRun
3766 3767 3768 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3766 def text_run @text_run end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 |
# File 'lib/google/apis/docs_v1/classes.rb', line 3773 def update!(**args) @auto_text = args[:auto_text] if args.key?(:auto_text) @column_break = args[:column_break] if args.key?(:column_break) @date_element = args[:date_element] if args.key?(:date_element) @end_index = args[:end_index] if args.key?(:end_index) @equation = args[:equation] if args.key?(:equation) @footnote_reference = args[:footnote_reference] if args.key?(:footnote_reference) @horizontal_rule = args[:horizontal_rule] if args.key?(:horizontal_rule) @inline_object_element = args[:inline_object_element] if args.key?(:inline_object_element) @page_break = args[:page_break] if args.key?(:page_break) @person = args[:person] if args.key?(:person) @rich_link = args[:rich_link] if args.key?(:rich_link) @start_index = args[:start_index] if args.key?(:start_index) @text_run = args[:text_run] if args.key?(:text_run) end |