Class: Google::Apis::SheetsV4::TextFormatRun
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::TextFormatRun
- 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
A run of a text format. The format of this run continues until the start index of the next run. When updating, all fields must be set.
Instance Attribute Summary collapse
-
#format ⇒ Google::Apis::SheetsV4::TextFormat
The format of a run of text in a cell.
-
#start_index ⇒ Fixnum
The character index where this run starts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextFormatRun
constructor
A new instance of TextFormatRun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ TextFormatRun
Returns a new instance of TextFormatRun
8234 8235 8236 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8234 def initialize(**args) update!(**args) end |
Instance Attribute Details
#format ⇒ Google::Apis::SheetsV4::TextFormat
The format of a run of text in a cell.
Absent values indicate that the field isn't specified.
Corresponds to the JSON property format
8227 8228 8229 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8227 def format @format end |
#start_index ⇒ Fixnum
The character index where this run starts.
Corresponds to the JSON property startIndex
8232 8233 8234 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8232 def start_index @start_index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8239 8240 8241 8242 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 8239 def update!(**args) @format = args[:format] if args.key?(:format) @start_index = args[:start_index] if args.key?(:start_index) end |