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



2347
2348
2349
# File 'generated/google/apis/sheets_v4/classes.rb', line 2347

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)


2340
2341
2342
# File 'generated/google/apis/sheets_v4/classes.rb', line 2340

def column_count
  @column_count
end

#frozen_column_countFixnum

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

Returns:

  • (Fixnum)


2345
2346
2347
# File 'generated/google/apis/sheets_v4/classes.rb', line 2345

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)


2329
2330
2331
# File 'generated/google/apis/sheets_v4/classes.rb', line 2329

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)


2334
2335
2336
# File 'generated/google/apis/sheets_v4/classes.rb', line 2334

def hide_gridlines
  @hide_gridlines
end

#row_countFixnum

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

Returns:

  • (Fixnum)


2324
2325
2326
# File 'generated/google/apis/sheets_v4/classes.rb', line 2324

def row_count
  @row_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2352
2353
2354
2355
2356
2357
2358
# File 'generated/google/apis/sheets_v4/classes.rb', line 2352

def update!(**args)
  @row_count = args[:row_count] if args.key?(:row_count)
  @frozen_row_count = args[:frozen_row_count] if args.key?(:frozen_row_count)
  @hide_gridlines = args[:hide_gridlines] if args.key?(:hide_gridlines)
  @column_count = args[:column_count] if args.key?(:column_count)
  @frozen_column_count = args[:frozen_column_count] if args.key?(:frozen_column_count)
end