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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ TableCellStyle

Returns a new instance of TableCellStyle.



5272
5273
5274
# File 'lib/google/apis/docs_v1/classes.rb', line 5272

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



5210
5211
5212
# File 'lib/google/apis/docs_v1/classes.rb', line 5210

def background_color
  @background_color
end

#border_bottomGoogle::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



5216
5217
5218
# File 'lib/google/apis/docs_v1/classes.rb', line 5216

def border_bottom
  @border_bottom
end

#border_leftGoogle::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



5222
5223
5224
# File 'lib/google/apis/docs_v1/classes.rb', line 5222

def border_left
  @border_left
end

#border_rightGoogle::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



5228
5229
5230
# File 'lib/google/apis/docs_v1/classes.rb', line 5228

def border_right
  @border_right
end

#border_topGoogle::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



5234
5235
5236
# File 'lib/google/apis/docs_v1/classes.rb', line 5234

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)


5239
5240
5241
# File 'lib/google/apis/docs_v1/classes.rb', line 5239

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)


5245
5246
5247
# File 'lib/google/apis/docs_v1/classes.rb', line 5245

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



5250
5251
5252
# File 'lib/google/apis/docs_v1/classes.rb', line 5250

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



5255
5256
5257
# File 'lib/google/apis/docs_v1/classes.rb', line 5255

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



5260
5261
5262
# File 'lib/google/apis/docs_v1/classes.rb', line 5260

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



5265
5266
5267
# File 'lib/google/apis/docs_v1/classes.rb', line 5265

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)


5270
5271
5272
# File 'lib/google/apis/docs_v1/classes.rb', line 5270

def row_span
  @row_span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
# File 'lib/google/apis/docs_v1/classes.rb', line 5277

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