class Google::Apis::SheetsV4::OverlayPosition

The location an object is overlaid on top of a grid.

Attributes

anchor_cell[RW]

A coordinate in a sheet. All indexes are zero-based. Corresponds to the JSON property `anchorCell` @return [Google::Apis::SheetsV4::GridCoordinate]

height_pixels[RW]

The height of the object, in pixels. Defaults to 371. Corresponds to the JSON property `heightPixels` @return [Fixnum]

offset_x_pixels[RW]

The horizontal offset, in pixels, that the object is offset from the anchor cell. Corresponds to the JSON property `offsetXPixels` @return [Fixnum]

offset_y_pixels[RW]

The vertical offset, in pixels, that the object is offset from the anchor cell. Corresponds to the JSON property `offsetYPixels` @return [Fixnum]

width_pixels[RW]

The width of the object, in pixels. Defaults to 600. Corresponds to the JSON property `widthPixels` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/sheets_v4/classes.rb, line 6960
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/sheets_v4/classes.rb, line 6965
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