class Google::Apis::DocsV1::ParagraphElement

A ParagraphElement describes content within a Paragraph.

Attributes

auto_text[RW]

A ParagraphElement representing a spot in the text that is dynamically replaced with content that can change over time, like a page number. Corresponds to the JSON property `autoText` @return [Google::Apis::DocsV1::AutoText]

column_break[RW]

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` @return [Google::Apis::DocsV1::ColumnBreak]

end_index[RW]

The zero-base end index of this paragraph element, exclusive, in UTF-16 code units. Corresponds to the JSON property `endIndex` @return [Fixnum]

equation[RW]

A ParagraphElement representing an equation. Corresponds to the JSON property `equation` @return [Google::Apis::DocsV1::Equation]

footnote_reference[RW]

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` @return [Google::Apis::DocsV1::FootnoteReference]

horizontal_rule[RW]

A ParagraphElement representing a horizontal line. Corresponds to the JSON property `horizontalRule` @return [Google::Apis::DocsV1::HorizontalRule]

inline_object_element[RW]

A ParagraphElement that contains an InlineObject. Corresponds to the JSON property `inlineObjectElement` @return [Google::Apis::DocsV1::InlineObjectElement]

page_break[RW]

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` @return [Google::Apis::DocsV1::PageBreak]

person[RW]

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` @return [Google::Apis::DocsV1::Person]

start_index[RW]

The zero-based start index of this paragraph element, in UTF-16 code units. Corresponds to the JSON property `startIndex` @return [Fixnum]

text_run[RW]

A ParagraphElement that represents a run of text that all has the same styling. Corresponds to the JSON property `textRun` @return [Google::Apis::DocsV1::TextRun]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/docs_v1/classes.rb, line 3188
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/docs_v1/classes.rb, line 3193
def update!(**args)
  @auto_text = args[:auto_text] if args.key?(:auto_text)
  @column_break = args[:column_break] if args.key?(:column_break)
  @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