Class: Google::Apis::SheetsV4::InsertDimensionRequest
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::InsertDimensionRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb
Overview
Inserts rows or columns in a sheet at a particular index.
Instance Attribute Summary collapse
-
#inherit_from_before ⇒ Boolean
(also: #inherit_from_before?)
Whether dimension properties should be extended from the dimensions before or after the newly inserted dimensions.
-
#range ⇒ Google::Apis::SheetsV4::DimensionRange
A range along a single dimension on a sheet.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InsertDimensionRequest
constructor
A new instance of InsertDimensionRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InsertDimensionRequest
Returns a new instance of InsertDimensionRequest.
6027 6028 6029 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6027 def initialize(**args) update!(**args) end |
Instance Attribute Details
#inherit_from_before ⇒ Boolean Also known as: inherit_from_before?
Whether dimension properties should be extended from the dimensions
before or after the newly inserted dimensions.
True to inherit from the dimensions before (in which case the start
index must be greater than 0), and false to inherit from the dimensions
after.
For example, if row index 0 has red background and row index 1
has a green background, then inserting 2 rows at index 1 can inherit
either the green or red background. If inheritFromBefore
is true,
the two new rows will be red (because the row before the insertion point
was red), whereas if inheritFromBefore
is false, the two new rows will
be green (because the row after the insertion point was green).
Corresponds to the JSON property inheritFromBefore
6015 6016 6017 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6015 def inherit_from_before @inherit_from_before end |
#range ⇒ Google::Apis::SheetsV4::DimensionRange
A range along a single dimension on a sheet.
All indexes are zero-based.
Indexes are half open: the start index is inclusive
and the end index is exclusive.
Missing indexes indicate the range is unbounded on that side.
Corresponds to the JSON property range
6025 6026 6027 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6025 def range @range end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6032 6033 6034 6035 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 6032 def update!(**args) @inherit_from_before = args[:inherit_from_before] if args.key?(:inherit_from_before) @range = args[:range] if args.key?(:range) end |