Class: Google::Apis::SheetsV4::GridProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::GridProperties
- 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
Properties of a grid.
Instance Attribute Summary collapse
-
#column_count ⇒ Fixnum
The number of columns in the grid.
-
#frozen_column_count ⇒ Fixnum
The number of columns that are frozen in the grid.
-
#frozen_row_count ⇒ Fixnum
The number of rows that are frozen in the grid.
-
#hide_gridlines ⇒ Boolean
(also: #hide_gridlines?)
True if the grid isn't showing gridlines in the UI.
-
#row_count ⇒ Fixnum
The number of rows in the grid.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GridProperties
constructor
A new instance of GridProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GridProperties
Returns a new instance of GridProperties
4605 4606 4607 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4605 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column_count ⇒ Fixnum
The number of columns in the grid.
Corresponds to the JSON property columnCount
4582 4583 4584 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4582 def column_count @column_count end |
#frozen_column_count ⇒ Fixnum
The number of columns that are frozen in the grid.
Corresponds to the JSON property frozenColumnCount
4587 4588 4589 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4587 def frozen_column_count @frozen_column_count end |
#frozen_row_count ⇒ Fixnum
The number of rows that are frozen in the grid.
Corresponds to the JSON property frozenRowCount
4592 4593 4594 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4592 def frozen_row_count @frozen_row_count end |
#hide_gridlines ⇒ Boolean Also known as: hide_gridlines?
True if the grid isn't showing gridlines in the UI.
Corresponds to the JSON property hideGridlines
4597 4598 4599 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4597 def hide_gridlines @hide_gridlines end |
#row_count ⇒ Fixnum
The number of rows in the grid.
Corresponds to the JSON property rowCount
4603 4604 4605 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4603 def row_count @row_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4610 4611 4612 4613 4614 4615 4616 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4610 def update!(**args) @column_count = args[:column_count] if args.key?(:column_count) @frozen_column_count = args[:frozen_column_count] if args.key?(:frozen_column_count) @frozen_row_count = args[:frozen_row_count] if args.key?(:frozen_row_count) @hide_gridlines = args[:hide_gridlines] if args.key?(:hide_gridlines) @row_count = args[:row_count] if args.key?(:row_count) end |