Class: Google::Apis::SheetsV4::TextRotation
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::TextRotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb
Overview
The rotation applied to text in a cell.
Instance Attribute Summary collapse
-
#angle ⇒ Fixnum
The angle between the standard orientation and the desired orientation.
-
#vertical ⇒ Boolean
(also: #vertical?)
If true, text reads top to bottom, but the orientation of individual characters is unchanged.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextRotation
constructor
A new instance of TextRotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextRotation
Returns a new instance of TextRotation.
9617 9618 9619 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9617 def initialize(**args) update!(**args) end |
Instance Attribute Details
#angle ⇒ Fixnum
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
9607 9608 9609 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9607 def angle @angle end |
#vertical ⇒ Boolean 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
9614 9615 9616 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9614 def vertical @vertical end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9622 9623 9624 9625 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 9622 def update!(**args) @angle = args[:angle] if args.key?(:angle) @vertical = args[:vertical] if args.key?(:vertical) end |