class Google::Apis::DocsV1::TableCellStyle

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.

Attributes

background_color[RW]

A color that can either be fully opaque or fully transparent. Corresponds to the JSON property `backgroundColor` @return [Google::Apis::DocsV1::OptionalColor]

border_bottom[RW]

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` @return [Google::Apis::DocsV1::TableCellBorder]

border_left[RW]

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` @return [Google::Apis::DocsV1::TableCellBorder]

border_right[RW]

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` @return [Google::Apis::DocsV1::TableCellBorder]

border_top[RW]

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` @return [Google::Apis::DocsV1::TableCellBorder]

column_span[RW]

The column span of the cell. This property is read-only. Corresponds to the JSON property `columnSpan` @return [Fixnum]

content_alignment[RW]

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` @return [String]

padding_bottom[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `paddingBottom` @return [Google::Apis::DocsV1::Dimension]

padding_left[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `paddingLeft` @return [Google::Apis::DocsV1::Dimension]

padding_right[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `paddingRight` @return [Google::Apis::DocsV1::Dimension]

padding_top[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `paddingTop` @return [Google::Apis::DocsV1::Dimension]

row_span[RW]

The row span of the cell. This property is read-only. Corresponds to the JSON property `rowSpan` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/docs_v1/classes.rb, line 5377
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 5382
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