Class: Google::Apis::DocsV1::UpdateTextStyleRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::UpdateTextStyleRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
Update the styling of text.
Instance Attribute Summary collapse
-
#fields ⇒ String
The fields that should be updated.
-
#range ⇒ Google::Apis::DocsV1::Range
Specifies a contiguous range of text.
-
#text_style ⇒ Google::Apis::DocsV1::TextStyle
Represents the styling that can be applied to text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateTextStyleRequest
constructor
A new instance of UpdateTextStyleRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateTextStyleRequest
Returns a new instance of UpdateTextStyleRequest
5304 5305 5306 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5304 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ String
The fields that should be updated.
At least one field must be specified. The root text_style
is implied and
should not be specified. A single "*"
can be used as short-hand for
listing every field.
For example, to update the text style to bold, set fields
to "bold"
.
To reset a property to its default value, include its field name in the
field mask but leave the field itself unset.
Corresponds to the JSON property fields
5279 5280 5281 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5279 def fields @fields end |
#range ⇒ Google::Apis::DocsV1::Range
Specifies a contiguous range of text.
Corresponds to the JSON property range
5284 5285 5286 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5284 def range @range end |
#text_style ⇒ Google::Apis::DocsV1::TextStyle
Represents the styling that can be applied to text. Inherited text styles are represented as unset fields in this message. A text style's parent depends on where the text style is defined:
- The TextStyle of text in a Paragraph inherits from the paragraph's corresponding named style type.
- The TextStyle on a named style inherits from the normal text named style.
- The TextStyle of the normal text named style inherits from the default text style in the Docs editor.
- The TextStyle on a Paragraph element
that is contained in a table may inherit its text style from the table
style.
If the text style does not inherit from a parent, unsetting fields will
revert the style to a value matching the defaults in the Docs editor.
Corresponds to the JSON property
textStyle
5302 5303 5304 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5302 def text_style @text_style end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5309 5310 5311 5312 5313 |
# File 'generated/google/apis/docs_v1/classes.rb', line 5309 def update!(**args) @fields = args[:fields] if args.key?(:fields) @range = args[:range] if args.key?(:range) @text_style = args[:text_style] if args.key?(:text_style) end |