Class: Google::Apis::SheetsV4::TextPosition

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

Position settings for text.

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) ⇒ TextPosition

Returns a new instance of TextPosition.



9203
9204
9205
# File 'generated/google/apis/sheets_v4/classes.rb', line 9203

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

Instance Attribute Details

#horizontal_alignmentString

Horizontal alignment setting for the piece of text. Corresponds to the JSON property horizontalAlignment

Returns:

  • (String)


9201
9202
9203
# File 'generated/google/apis/sheets_v4/classes.rb', line 9201

def horizontal_alignment
  @horizontal_alignment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9208
9209
9210
# File 'generated/google/apis/sheets_v4/classes.rb', line 9208

def update!(**args)
  @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
end