class Google::Apis::DocsV1::SectionStyle

The styling that applies to a section.

Attributes

column_properties[RW]

The section's columns properties. If empty, the section contains one column with the default properties in the Docs editor. A section can be updated to have no more than three columns. When updating this property, setting a concrete value is required. Unsetting this property will result in a 400 bad request error. Corresponds to the JSON property `columnProperties` @return [Array<Google::Apis::DocsV1::SectionColumnProperties>]

column_separator_style[RW]

The style of column separators. This style can be set even when there is one column in the section. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. Corresponds to the JSON property `columnSeparatorStyle` @return [String]

content_direction[RW]

The content direction of this section. If unset, the value defaults to LEFT_TO_RIGHT. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. Corresponds to the JSON property `contentDirection` @return [String]

default_header_id[RW]

The ID of the default header. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's default_header_id. This property is read-only. Corresponds to the JSON property `defaultHeaderId` @return [String]

even_page_header_id[RW]

The ID of the header used only for even pages. If the value of DocumentStyle's use_even_page_header_footer is true, this value is used for the headers on even pages in the section. If it is false, the headers on even pages uses the default_header_id. If unset, the value inherits from the previous SectionBreak' s SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's even_page_header_id. This property is read-only. Corresponds to the JSON property `evenPageHeaderId` @return [String]

first_page_header_id[RW]

The ID of the header used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the header on the first page of the section. If it is false, the header on the first page of the section uses the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_header_id. This property is read-only. Corresponds to the JSON property `firstPageHeaderId` @return [String]

margin_bottom[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginBottom` @return [Google::Apis::DocsV1::Dimension]

margin_header[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginHeader` @return [Google::Apis::DocsV1::Dimension]

margin_left[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginLeft` @return [Google::Apis::DocsV1::Dimension]

margin_right[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginRight` @return [Google::Apis::DocsV1::Dimension]

margin_top[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginTop` @return [Google::Apis::DocsV1::Dimension]

page_number_start[RW]

The page number from which to start counting the number of pages for this section. If unset, page numbering continues from the previous section. If the value is unset in the first SectionBreak, refer to DocumentStyle's page_number_start. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error. Corresponds to the JSON property `pageNumberStart` @return [Fixnum]

section_type[RW]

Output only. The type of section. Corresponds to the JSON property `sectionType` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/docs_v1/classes.rb, line 4561
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 4566
def update!(**args)
  @column_properties = args[:column_properties] if args.key?(:column_properties)
  @column_separator_style = args[:column_separator_style] if args.key?(:column_separator_style)
  @content_direction = args[:content_direction] if args.key?(:content_direction)
  @default_footer_id = args[:default_footer_id] if args.key?(:default_footer_id)
  @default_header_id = args[:default_header_id] if args.key?(:default_header_id)
  @even_page_footer_id = args[:even_page_footer_id] if args.key?(:even_page_footer_id)
  @even_page_header_id = args[:even_page_header_id] if args.key?(:even_page_header_id)
  @first_page_footer_id = args[:first_page_footer_id] if args.key?(:first_page_footer_id)
  @first_page_header_id = args[:first_page_header_id] if args.key?(:first_page_header_id)
  @margin_bottom = args[:margin_bottom] if args.key?(:margin_bottom)
  @margin_footer = args[:margin_footer] if args.key?(:margin_footer)
  @margin_header = args[:margin_header] if args.key?(:margin_header)
  @margin_left = args[:margin_left] if args.key?(:margin_left)
  @margin_right = args[:margin_right] if args.key?(:margin_right)
  @margin_top = args[:margin_top] if args.key?(:margin_top)
  @page_number_start = args[:page_number_start] if args.key?(:page_number_start)
  @section_type = args[:section_type] if args.key?(:section_type)
  @use_first_page_header_footer = args[:use_first_page_header_footer] if args.key?(:use_first_page_header_footer)
end