class 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.
Attributes
A color that can either be fully opaque or fully transparent. Corresponds to the JSON property `backgroundColor` @return [Google::Apis::DocsV1::OptionalColor]
The text's vertical offset from its normal position. Text with `SUPERSCRIPT` or `SUBSCRIPT` baseline offsets is automatically rendered in a smaller font size, computed based on the `font_size` field. The `font_size` itself is not affected by changes in this field. Corresponds to the JSON property `baselineOffset` @return [String]
Whether or not the text is rendered as bold. Corresponds to the JSON property `bold` @return [Boolean]
Whether or not the text is rendered as bold. Corresponds to the JSON property `bold` @return [Boolean]
A magnitude in a single direction in the specified units. Corresponds to the JSON property `fontSize` @return [Google::Apis::DocsV1::Dimension]
A color that can either be fully opaque or fully transparent. Corresponds to the JSON property `foregroundColor` @return [Google::Apis::DocsV1::OptionalColor]
Whether or not the text is italicized. Corresponds to the JSON property `italic` @return [Boolean]
Whether or not the text is italicized. Corresponds to the JSON property `italic` @return [Boolean]
A reference to another portion of a document or an external URL resource. Corresponds to the JSON property `link` @return [Google::Apis::DocsV1::Link]
Whether or not the text is in small capital letters. Corresponds to the JSON property `smallCaps` @return [Boolean]
Whether or not the text is in small capital letters. Corresponds to the JSON property `smallCaps` @return [Boolean]
Whether or not the text is struck through. Corresponds to the JSON property `strikethrough` @return [Boolean]
Whether or not the text is struck through. Corresponds to the JSON property `strikethrough` @return [Boolean]
Whether or not the text is underlined. Corresponds to the JSON property `underline` @return [Boolean]
Whether or not the text is underlined. Corresponds to the JSON property `underline` @return [Boolean]
Represents a font family and weight of text. Corresponds to the JSON property `weightedFontFamily` @return [Google::Apis::DocsV1::WeightedFontFamily]
Public Class Methods
# File lib/google/apis/docs_v1/classes.rb, line 5844 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/docs_v1/classes.rb, line 5849 def update!(**args) @background_color = args[:background_color] if args.key?(:background_color) @baseline_offset = args[:baseline_offset] if args.key?(:baseline_offset) @bold = args[:bold] if args.key?(:bold) @font_size = args[:font_size] if args.key?(:font_size) @foreground_color = args[:foreground_color] if args.key?(:foreground_color) @italic = args[:italic] if args.key?(:italic) @link = args[:link] if args.key?(:link) @small_caps = args[:small_caps] if args.key?(:small_caps) @strikethrough = args[:strikethrough] if args.key?(:strikethrough) @underline = args[:underline] if args.key?(:underline) @weighted_font_family = args[:weighted_font_family] if args.key?(:weighted_font_family) end