Class: Google::Apis::DocsV1::DocumentStyle
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::DocumentStyle
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
The style of the document.
Instance Attribute Summary collapse
-
#background ⇒ Google::Apis::DocsV1::Background
Represents the background of a document.
-
#default_footer_id ⇒ String
The ID of the default footer.
-
#default_header_id ⇒ String
The ID of the default header.
-
#even_page_footer_id ⇒ String
The ID of the footer used only for even pages.
-
#even_page_header_id ⇒ String
The ID of the header used only for even pages.
-
#first_page_footer_id ⇒ String
The ID of the footer used only for the first page.
-
#first_page_header_id ⇒ String
The ID of the header used only for the first page.
-
#margin_bottom ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#margin_left ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#margin_right ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#margin_top ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#page_number_start ⇒ Fixnum
The page number from which to start counting the number of pages.
-
#page_size ⇒ Google::Apis::DocsV1::Size
A width and height.
-
#use_even_page_header_footer ⇒ Boolean
(also: #use_even_page_header_footer?)
Indicates whether to use the even page header / footer IDs for the even pages.
-
#use_first_page_header_footer ⇒ Boolean
(also: #use_first_page_header_footer?)
Indicates whether to use the first page header / footer IDs for the first page.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DocumentStyle
constructor
A new instance of DocumentStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DocumentStyle
Returns a new instance of DocumentStyle.
1021 1022 1023 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1021 def initialize(**args) update!(**args) end |
Instance Attribute Details
#background ⇒ Google::Apis::DocsV1::Background
Represents the background of a document.
Corresponds to the JSON property background
923 924 925 |
# File 'generated/google/apis/docs_v1/classes.rb', line 923 def background @background end |
#default_footer_id ⇒ String
The ID of the default footer. If not set, there is no default footer.
This property is read-only.
Corresponds to the JSON property defaultFooterId
929 930 931 |
# File 'generated/google/apis/docs_v1/classes.rb', line 929 def @default_footer_id end |
#default_header_id ⇒ String
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
935 936 937 |
# File 'generated/google/apis/docs_v1/classes.rb', line 935 def default_header_id @default_header_id end |
#even_page_footer_id ⇒ String
The ID of the footer used only for even pages. The value of
use_even_page_header_footer determines
whether to use the default_footer_id or this value for the
footer on even pages. If not set, there is no even page footer.
This property is read-only.
Corresponds to the JSON property evenPageFooterId
944 945 946 |
# File 'generated/google/apis/docs_v1/classes.rb', line 944 def @even_page_footer_id end |
#even_page_header_id ⇒ String
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
953 954 955 |
# File 'generated/google/apis/docs_v1/classes.rb', line 953 def even_page_header_id @even_page_header_id end |
#first_page_footer_id ⇒ String
The ID of the footer used only for the first page. If not set then
a unique footer for the first page does not exist. The value of
use_first_page_header_footer determines
whether to use the default_footer_id or this value for the
footer on the first page. If not set, there is no first page footer.
This property is read-only.
Corresponds to the JSON property firstPageFooterId
963 964 965 |
# File 'generated/google/apis/docs_v1/classes.rb', line 963 def @first_page_footer_id end |
#first_page_header_id ⇒ String
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
973 974 975 |
# File 'generated/google/apis/docs_v1/classes.rb', line 973 def first_page_header_id @first_page_header_id end |
#margin_bottom ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginBottom
978 979 980 |
# File 'generated/google/apis/docs_v1/classes.rb', line 978 def margin_bottom @margin_bottom end |
#margin_left ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginLeft
983 984 985 |
# File 'generated/google/apis/docs_v1/classes.rb', line 983 def margin_left @margin_left end |
#margin_right ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginRight
988 989 990 |
# File 'generated/google/apis/docs_v1/classes.rb', line 988 def margin_right @margin_right end |
#margin_top ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginTop
993 994 995 |
# File 'generated/google/apis/docs_v1/classes.rb', line 993 def margin_top @margin_top end |
#page_number_start ⇒ Fixnum
The page number from which to start counting the number of pages.
Corresponds to the JSON property pageNumberStart
998 999 1000 |
# File 'generated/google/apis/docs_v1/classes.rb', line 998 def page_number_start @page_number_start end |
#page_size ⇒ Google::Apis::DocsV1::Size
A width and height.
Corresponds to the JSON property pageSize
1003 1004 1005 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1003 def page_size @page_size end |
#use_even_page_header_footer ⇒ Boolean Also known as:
Indicates whether to use the even page header / footer IDs for the even
pages.
This property is read-only.
Corresponds to the JSON property useEvenPageHeaderFooter
1010 1011 1012 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1010 def @use_even_page_header_footer end |
#use_first_page_header_footer ⇒ Boolean Also known as:
Indicates whether to use the first page header / footer IDs for the first
page.
This property is read-only.
Corresponds to the JSON property useFirstPageHeaderFooter
1018 1019 1020 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1018 def @use_first_page_header_footer end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1026 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_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_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 |