class Google::Apis::DocsV1::DocumentStyle

The style of the document.

Attributes

background[RW]

Represents the background of a document. Corresponds to the JSON property `background` @return [Google::Apis::DocsV1::Background]

default_header_id[RW]

The ID of the default header. If not set, there is no default header. 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. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there is no even page header. 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. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there is no first page header. 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. Corresponds to the JSON property `pageNumberStart` @return [Fixnum]

page_size[RW]

A width and height. Corresponds to the JSON property `pageSize` @return [Google::Apis::DocsV1::Size]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/docs_v1/classes.rb, line 1105
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 1110
def update!(**args)
  @background = args[:background] if args.key?(:background)
  @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)
  @page_size = args[:page_size] if args.key?(:page_size)
  @use_custom_header_footer_margins = args[:use_custom_header_footer_margins] if args.key?(:use_custom_header_footer_margins)
  @use_even_page_header_footer = args[:use_even_page_header_footer] if args.key?(:use_even_page_header_footer)
  @use_first_page_header_footer = args[:use_first_page_header_footer] if args.key?(:use_first_page_header_footer)
end