Class: Google::Apis::SheetsV4::TextRotation

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

The rotation applied to text in a cell.

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

Returns a new instance of TextRotation.



9901
9902
9903
# File 'generated/google/apis/sheets_v4/classes.rb', line 9901

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

Instance Attribute Details

#angleFixnum

The angle between the standard orientation and the desired orientation. Measured in degrees. Valid values are between -90 and 90. Positive angles are angled upwards, negative are angled downwards. Note: For LTR text direction positive angles are in the counterclockwise direction, whereas for RTL they are in the clockwise direction Corresponds to the JSON property angle

Returns:

  • (Fixnum)


9883
9884
9885
# File 'generated/google/apis/sheets_v4/classes.rb', line 9883

def angle
  @angle
end

#verticalBoolean Also known as: vertical?

If true, text reads top to bottom, but the orientation of individual characters is unchanged. For example: | V | | e | | r | | t | | i | | c | | a | | l | Corresponds to the JSON property vertical

Returns:

  • (Boolean)


9898
9899
9900
# File 'generated/google/apis/sheets_v4/classes.rb', line 9898

def vertical
  @vertical
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9906
9907
9908
9909
# File 'generated/google/apis/sheets_v4/classes.rb', line 9906

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