Class: Google::Apis::DocsV1::TableCellStyle

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 style of a TableCell. Inherited table cell styles are represented as unset fields in this message. A table cell style can inherit from the table's style.

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) ⇒ TableCellStyle

Returns a new instance of TableCellStyle



4781
4782
4783
# File 'generated/google/apis/docs_v1/classes.rb', line 4781

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

Instance Attribute Details

#background_colorGoogle::Apis::DocsV1::OptionalColor

A color that can either be fully opaque or fully transparent. Corresponds to the JSON property backgroundColor



4721
4722
4723
# File 'generated/google/apis/docs_v1/classes.rb', line 4721

def background_color
  @background_color
end

#border_bottomGoogle::Apis::DocsV1::TableCellBorder

A border around a table cell. Corresponds to the JSON property borderBottom



4726
4727
4728
# File 'generated/google/apis/docs_v1/classes.rb', line 4726

def border_bottom
  @border_bottom
end

#border_leftGoogle::Apis::DocsV1::TableCellBorder

A border around a table cell. Corresponds to the JSON property borderLeft



4731
4732
4733
# File 'generated/google/apis/docs_v1/classes.rb', line 4731

def border_left
  @border_left
end

#border_rightGoogle::Apis::DocsV1::TableCellBorder

A border around a table cell. Corresponds to the JSON property borderRight



4736
4737
4738
# File 'generated/google/apis/docs_v1/classes.rb', line 4736

def border_right
  @border_right
end

#border_topGoogle::Apis::DocsV1::TableCellBorder

A border around a table cell. Corresponds to the JSON property borderTop



4741
4742
4743
# File 'generated/google/apis/docs_v1/classes.rb', line 4741

def border_top
  @border_top
end

#column_spanFixnum

The column span of the cell. This property is read-only. Corresponds to the JSON property columnSpan

Returns:

  • (Fixnum)


4747
4748
4749
# File 'generated/google/apis/docs_v1/classes.rb', line 4747

def column_span
  @column_span
end

#content_alignmentString

The alignment of the content in the table cell. The default alignment matches the alignment for newly created table cells in the Docs editor. Corresponds to the JSON property contentAlignment

Returns:

  • (String)


4753
4754
4755
# File 'generated/google/apis/docs_v1/classes.rb', line 4753

def content_alignment
  @content_alignment
end

#padding_bottomGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property paddingBottom



4758
4759
4760
# File 'generated/google/apis/docs_v1/classes.rb', line 4758

def padding_bottom
  @padding_bottom
end

#padding_leftGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property paddingLeft



4763
4764
4765
# File 'generated/google/apis/docs_v1/classes.rb', line 4763

def padding_left
  @padding_left
end

#padding_rightGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property paddingRight



4768
4769
4770
# File 'generated/google/apis/docs_v1/classes.rb', line 4768

def padding_right
  @padding_right
end

#padding_topGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property paddingTop



4773
4774
4775
# File 'generated/google/apis/docs_v1/classes.rb', line 4773

def padding_top
  @padding_top
end

#row_spanFixnum

The row span of the cell. This property is read-only. Corresponds to the JSON property rowSpan

Returns:

  • (Fixnum)


4779
4780
4781
# File 'generated/google/apis/docs_v1/classes.rb', line 4779

def row_span
  @row_span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
# File 'generated/google/apis/docs_v1/classes.rb', line 4786

def update!(**args)
  @background_color = args[:background_color] if args.key?(:background_color)
  @border_bottom = args[:border_bottom] if args.key?(:border_bottom)
  @border_left = args[:border_left] if args.key?(:border_left)
  @border_right = args[:border_right] if args.key?(:border_right)
  @border_top = args[:border_top] if args.key?(:border_top)
  @column_span = args[:column_span] if args.key?(:column_span)
  @content_alignment = args[:content_alignment] if args.key?(:content_alignment)
  @padding_bottom = args[:padding_bottom] if args.key?(:padding_bottom)
  @padding_left = args[:padding_left] if args.key?(:padding_left)
  @padding_right = args[:padding_right] if args.key?(:padding_right)
  @padding_top = args[:padding_top] if args.key?(:padding_top)
  @row_span = args[:row_span] if args.key?(:row_span)
end