Class: Google::Apis::DocsV1::SectionStyle

Inherits:
Object
  • Object
show all
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 styling that applies to a section.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SectionStyle

Returns a new instance of SectionStyle



3809
3810
3811
# File 'generated/google/apis/docs_v1/classes.rb', line 3809

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#column_propertiesArray<Google::Apis::DocsV1::SectionColumnProperties>

The section's columns properties. If empty, the section contains one column with the default properties in the Docs editor. Corresponds to the JSON property columnProperties



3795
3796
3797
# File 'generated/google/apis/docs_v1/classes.rb', line 3795

def column_properties
  @column_properties
end

#column_separator_styleString

The style of column separators. This style can be set even when there is one column in the section. Corresponds to the JSON property columnSeparatorStyle

Returns:

  • (String)


3801
3802
3803
# File 'generated/google/apis/docs_v1/classes.rb', line 3801

def column_separator_style
  @column_separator_style
end

#content_directionString

The content direction of this section. If unset, the value defaults to LEFT_TO_RIGHT. Corresponds to the JSON property contentDirection

Returns:

  • (String)


3807
3808
3809
# File 'generated/google/apis/docs_v1/classes.rb', line 3807

def content_direction
  @content_direction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3814
3815
3816
3817
3818
# File 'generated/google/apis/docs_v1/classes.rb', line 3814

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)
end