Class: Google::Apis::DocsV1::UpdateTableCellStyleRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::UpdateTableCellStyleRequest
- 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
Updates the style of a range of table cells.
Instance Attribute Summary collapse
-
#fields ⇒ String
The fields that should be updated.
-
#table_cell_style ⇒ Google::Apis::DocsV1::TableCellStyle
The style of a TableCell.
-
#table_range ⇒ Google::Apis::DocsV1::TableRange
A table range represents a reference to a subset of a table.
-
#table_start_location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateTableCellStyleRequest
constructor
A new instance of UpdateTableCellStyleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateTableCellStyleRequest
Returns a new instance of UpdateTableCellStyleRequest.
6214 6215 6216 |
# File 'generated/google/apis/docs_v1/classes.rb', line 6214 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ String
The fields that should be updated.
At least one field must be specified. The root tableCellStyle
is implied
and should not be specified. A single "*"
can be used as short-hand for
listing every field.
For example to update the table cell background color, set fields
to
"backgroundColor"
.
To reset a property to its default value, include its field name in the
field mask but leave the field itself unset.
Corresponds to the JSON property fields
6185 6186 6187 |
# File 'generated/google/apis/docs_v1/classes.rb', line 6185 def fields @fields end |
#table_cell_style ⇒ 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.
Corresponds to the JSON property tableCellStyle
6192 6193 6194 |
# File 'generated/google/apis/docs_v1/classes.rb', line 6192 def table_cell_style @table_cell_style end |
#table_range ⇒ Google::Apis::DocsV1::TableRange
A table range represents a reference to a subset of a table. It's important to note that the cells specified by a table range do not necessarily form a rectangle. For example, let's say we have a 3 x 3 table where all the cells of the last row are merged together. The table looks like this:
[ ]
A table range with table cell location = (table_start_location, row = 0,
column = 0), row span = 3 and column span = 2 specifies the following cells:
x x
[ x x x ]
Corresponds to the JSON property tableRange
6207 6208 6209 |
# File 'generated/google/apis/docs_v1/classes.rb', line 6207 def table_range @table_range end |
#table_start_location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
Corresponds to the JSON property tableStartLocation
6212 6213 6214 |
# File 'generated/google/apis/docs_v1/classes.rb', line 6212 def table_start_location @table_start_location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6219 6220 6221 6222 6223 6224 |
# File 'generated/google/apis/docs_v1/classes.rb', line 6219 def update!(**args) @fields = args[:fields] if args.key?(:fields) @table_cell_style = args[:table_cell_style] if args.key?(:table_cell_style) @table_range = args[:table_range] if args.key?(:table_range) @table_start_location = args[:table_start_location] if args.key?(:table_start_location) end |