Class: Google::Apis::SheetsV4::GridProperties

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GridProperties

Returns a new instance of GridProperties.



5684
5685
5686
# File 'generated/google/apis/sheets_v4/classes.rb', line 5684

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#column_countFixnum

The number of columns in the grid. Corresponds to the JSON property columnCount

Returns:

  • (Fixnum)


5649
5650
5651
# File 'generated/google/apis/sheets_v4/classes.rb', line 5649

def column_count
  @column_count
end

#column_group_control_afterBoolean 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

Returns:

  • (Boolean)


5654
5655
5656
# File 'generated/google/apis/sheets_v4/classes.rb', line 5654

def column_group_control_after
  @column_group_control_after
end

#frozen_column_countFixnum

The number of columns that are frozen in the grid. Corresponds to the JSON property frozenColumnCount

Returns:

  • (Fixnum)


5660
5661
5662
# File 'generated/google/apis/sheets_v4/classes.rb', line 5660

def frozen_column_count
  @frozen_column_count
end

#frozen_row_countFixnum

The number of rows that are frozen in the grid. Corresponds to the JSON property frozenRowCount

Returns:

  • (Fixnum)


5665
5666
5667
# File 'generated/google/apis/sheets_v4/classes.rb', line 5665

def frozen_row_count
  @frozen_row_count
end

#hide_gridlinesBoolean Also known as: hide_gridlines?

True if the grid isn't showing gridlines in the UI. Corresponds to the JSON property hideGridlines

Returns:

  • (Boolean)


5670
5671
5672
# File 'generated/google/apis/sheets_v4/classes.rb', line 5670

def hide_gridlines
  @hide_gridlines
end

#row_countFixnum

The number of rows in the grid. Corresponds to the JSON property rowCount

Returns:

  • (Fixnum)


5676
5677
5678
# File 'generated/google/apis/sheets_v4/classes.rb', line 5676

def row_count
  @row_count
end

#row_group_control_afterBoolean 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

Returns:

  • (Boolean)


5681
5682
5683
# File 'generated/google/apis/sheets_v4/classes.rb', line 5681

def row_group_control_after
  @row_group_control_after
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5689
5690
5691
5692
5693
5694
5695
5696
5697
# File 'generated/google/apis/sheets_v4/classes.rb', line 5689

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