class Google::Apis::DocsV1::StructuralElement

A StructuralElement describes content that provides structure to the document.

Attributes

end_index[RW]

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

paragraph[RW]

A StructuralElement representing a paragraph. A paragraph is a range of content that is terminated with a newline character. Corresponds to the JSON property `paragraph` @return [Google::Apis::DocsV1::Paragraph]

section_break[RW]

A StructuralElement representing a section break. A section is a range of content which has the same SectionStyle. A section break represents the start of a new section, and the section style applies to the section after the section break. The document body always begins with a section break. Corresponds to the JSON property `sectionBreak` @return [Google::Apis::DocsV1::SectionBreak]

start_index[RW]

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

table[RW]

A StructuralElement representing a table. Corresponds to the JSON property `table` @return [Google::Apis::DocsV1::Table]

table_of_contents[RW]

A StructuralElement representing a table of contents. Corresponds to the JSON property `tableOfContents` @return [Google::Apis::DocsV1::TableOfContents]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/docs_v1/classes.rb, line 4776
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 4781
def update!(**args)
  @end_index = args[:end_index] if args.key?(:end_index)
  @paragraph = args[:paragraph] if args.key?(:paragraph)
  @section_break = args[:section_break] if args.key?(:section_break)
  @start_index = args[:start_index] if args.key?(:start_index)
  @table = args[:table] if args.key?(:table)
  @table_of_contents = args[:table_of_contents] if args.key?(:table_of_contents)
end