Class: Google::Apis::DocsV1::TableRange
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::TableRange
- 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
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 ]
Instance Attribute Summary collapse
-
#column_span ⇒ Fixnum
The column span of the table range.
-
#row_span ⇒ Fixnum
The row span of the table range.
-
#table_cell_location ⇒ Google::Apis::DocsV1::TableCellLocation
Location of a single cell within a table.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TableRange
constructor
A new instance of TableRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TableRange
Returns a new instance of TableRange.
6043 6044 6045 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6043 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column_span ⇒ Fixnum
The column span of the table range.
Corresponds to the JSON property columnSpan
6031 6032 6033 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6031 def column_span @column_span end |
#row_span ⇒ Fixnum
The row span of the table range.
Corresponds to the JSON property rowSpan
6036 6037 6038 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6036 def row_span @row_span end |
#table_cell_location ⇒ Google::Apis::DocsV1::TableCellLocation
Location of a single cell within a table.
Corresponds to the JSON property tableCellLocation
6041 6042 6043 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6041 def table_cell_location @table_cell_location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6048 6049 6050 6051 6052 |
# File 'lib/google/apis/docs_v1/classes.rb', line 6048 def update!(**args) @column_span = args[:column_span] if args.key?(:column_span) @row_span = args[:row_span] if args.key?(:row_span) @table_cell_location = args[:table_cell_location] if args.key?(:table_cell_location) end |