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.
-
#column_group_control_after ⇒ Boolean
(also: #column_group_control_after?)
True if the column grouping control toggle is shown after the group.
-
#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.
-
#row_group_control_after ⇒ Boolean
(also: #row_group_control_after?)
True if the row grouping control toggle is shown after the group.
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
4962 4963 4964 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4962 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
4927 4928 4929 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4927 def column_count @column_count end |
#column_group_control_after ⇒ Boolean Also known as: column_group_control_after?
True if the column grouping control toggle is shown after the group.
Corresponds to the JSON property columnGroupControlAfter
4932 4933 4934 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4932 def column_group_control_after @column_group_control_after end |
#frozen_column_count ⇒ Fixnum
The number of columns that are frozen in the grid.
Corresponds to the JSON property frozenColumnCount
4938 4939 4940 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4938 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
4943 4944 4945 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4943 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
4948 4949 4950 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4948 def hide_gridlines @hide_gridlines end |
#row_count ⇒ Fixnum
The number of rows in the grid.
Corresponds to the JSON property rowCount
4954 4955 4956 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4954 def row_count @row_count end |
#row_group_control_after ⇒ Boolean Also known as: row_group_control_after?
True if the row grouping control toggle is shown after the group.
Corresponds to the JSON property rowGroupControlAfter
4959 4960 4961 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4959 def row_group_control_after @row_group_control_after end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4967 4968 4969 4970 4971 4972 4973 4974 4975 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 4967 def update!(**args) @column_count = args[:column_count] if args.key?(:column_count) @column_group_control_after = args[:column_group_control_after] if args.key?(:column_group_control_after) @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) @row_group_control_after = args[:row_group_control_after] if args.key?(:row_group_control_after) end |