Class: Google::Apis::DocsV1::TableCellStyle
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::TableCellStyle
- 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
-
#background_color ⇒ Google::Apis::DocsV1::OptionalColor
A color that can either be fully opaque or fully transparent.
-
#border_bottom ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
-
#border_left ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
-
#border_right ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
-
#border_top ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
-
#column_span ⇒ Fixnum
The column span of the cell.
-
#content_alignment ⇒ String
The alignment of the content in the table cell.
-
#padding_bottom ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#padding_left ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#padding_right ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#padding_top ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#row_span ⇒ Fixnum
The row span of the cell.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TableCellStyle
constructor
A new instance of TableCellStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TableCellStyle
Returns a new instance of TableCellStyle.
5059 5060 5061 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5059 def initialize(**args) update!(**args) end |
Instance Attribute Details
#background_color ⇒ Google::Apis::DocsV1::OptionalColor
A color that can either be fully opaque or fully transparent.
Corresponds to the JSON property backgroundColor
4991 4992 4993 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4991 def background_color @background_color end |
#border_bottom ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
Table cell borders cannot be transparent. To hide a table cell border, make
its width 0.
Corresponds to the JSON property borderBottom
4998 4999 5000 |
# File 'generated/google/apis/docs_v1/classes.rb', line 4998 def border_bottom @border_bottom end |
#border_left ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
Table cell borders cannot be transparent. To hide a table cell border, make
its width 0.
Corresponds to the JSON property borderLeft
5005 5006 5007 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5005 def border_left @border_left end |
#border_right ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
Table cell borders cannot be transparent. To hide a table cell border, make
its width 0.
Corresponds to the JSON property borderRight
5012 5013 5014 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5012 def border_right @border_right end |
#border_top ⇒ Google::Apis::DocsV1::TableCellBorder
A border around a table cell.
Table cell borders cannot be transparent. To hide a table cell border, make
its width 0.
Corresponds to the JSON property borderTop
5019 5020 5021 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5019 def border_top @border_top end |
#column_span ⇒ Fixnum
The column span of the cell.
This property is read-only.
Corresponds to the JSON property columnSpan
5025 5026 5027 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5025 def column_span @column_span end |
#content_alignment ⇒ String
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
5031 5032 5033 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5031 def content_alignment @content_alignment end |
#padding_bottom ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property paddingBottom
5036 5037 5038 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5036 def padding_bottom @padding_bottom end |
#padding_left ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property paddingLeft
5041 5042 5043 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5041 def padding_left @padding_left end |
#padding_right ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property paddingRight
5046 5047 5048 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5046 def padding_right @padding_right end |
#padding_top ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property paddingTop
5051 5052 5053 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5051 def padding_top @padding_top end |
#row_span ⇒ Fixnum
The row span of the cell.
This property is read-only.
Corresponds to the JSON property rowSpan
5057 5058 5059 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5057 def row_span @row_span end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5064 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 |