Class: Google::Apis::SheetsV4::OverlayPosition
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::SheetsV4::OverlayPosition
 
 
- 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
The location an object is overlaid on top of a grid.
Instance Attribute Summary collapse
- 
  
    
      #anchor_cell  ⇒ Google::Apis::SheetsV4::GridCoordinate 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A coordinate in a sheet.
 - 
  
    
      #height_pixels  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The height of the object, in pixels.
 - 
  
    
      #offset_x_pixels  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The horizontal offset, in pixels, that the object is offset from the anchor cell.
 - 
  
    
      #offset_y_pixels  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The vertical offset, in pixels, that the object is offset from the anchor cell.
 - 
  
    
      #width_pixels  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The width of the object, in pixels.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ OverlayPosition 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of OverlayPosition.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ OverlayPosition
Returns a new instance of OverlayPosition
      6149 6150 6151  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 6149 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#anchor_cell ⇒ Google::Apis::SheetsV4::GridCoordinate
A coordinate in a sheet.
All indexes are zero-based.
Corresponds to the JSON property anchorCell
      6125 6126 6127  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 6125 def anchor_cell @anchor_cell end  | 
  
#height_pixels ⇒ Fixnum
The height of the object, in pixels. Defaults to 371.
Corresponds to the JSON property heightPixels
      6130 6131 6132  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 6130 def height_pixels @height_pixels end  | 
  
#offset_x_pixels ⇒ Fixnum
The horizontal offset, in pixels, that the object is offset
from the anchor cell.
Corresponds to the JSON property offsetXPixels
      6136 6137 6138  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 6136 def offset_x_pixels @offset_x_pixels end  | 
  
#offset_y_pixels ⇒ Fixnum
The vertical offset, in pixels, that the object is offset
from the anchor cell.
Corresponds to the JSON property offsetYPixels
      6142 6143 6144  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 6142 def offset_y_pixels @offset_y_pixels end  | 
  
#width_pixels ⇒ Fixnum
The width of the object, in pixels. Defaults to 600.
Corresponds to the JSON property widthPixels
      6147 6148 6149  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 6147 def width_pixels @width_pixels end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      6154 6155 6156 6157 6158 6159 6160  | 
    
      # File 'generated/google/apis/sheets_v4/classes.rb', line 6154 def update!(**args) @anchor_cell = args[:anchor_cell] if args.key?(:anchor_cell) @height_pixels = args[:height_pixels] if args.key?(:height_pixels) @offset_x_pixels = args[:offset_x_pixels] if args.key?(:offset_x_pixels) @offset_y_pixels = args[:offset_y_pixels] if args.key?(:offset_y_pixels) @width_pixels = args[:width_pixels] if args.key?(:width_pixels) end  |