class Google::Apis::DocsV1::ParagraphStyle
Styles that apply to a whole paragraph. Inherited paragraph styles are represented as unset fields in this message. A paragraph style's parent depends on where the paragraph style is defined: * The ParagraphStyle
on a Paragraph
inherits from the paragraph's corresponding named style type. * The ParagraphStyle
on a named style inherits from the normal text named style. * The ParagraphStyle
of the normal text named style inherits from the default paragraph style in the Docs editor. * The ParagraphStyle
on a Paragraph
element that is contained in a table may inherit its paragraph style from the table style. If the paragraph style does not inherit from a parent, unsetting fields will revert the style to a value matching the defaults in the Docs editor.
Attributes
The text alignment for this paragraph. Corresponds to the JSON property `alignment` @return [String]
Whether to avoid widows and orphans for the paragraph. If unset, the value is inherited from the parent. Corresponds to the JSON property `avoidWidowAndOrphan` @return [Boolean]
Whether to avoid widows and orphans for the paragraph. If unset, the value is inherited from the parent. Corresponds to the JSON property `avoidWidowAndOrphan` @return [Boolean]
A border around a paragraph. Corresponds to the JSON property `borderBetween` @return [Google::Apis::DocsV1::ParagraphBorder]
A border around a paragraph. Corresponds to the JSON property `borderBottom` @return [Google::Apis::DocsV1::ParagraphBorder]
A border around a paragraph. Corresponds to the JSON property `borderLeft` @return [Google::Apis::DocsV1::ParagraphBorder]
A border around a paragraph. Corresponds to the JSON property `borderRight` @return [Google::Apis::DocsV1::ParagraphBorder]
A border around a paragraph. Corresponds to the JSON property `borderTop` @return [Google::Apis::DocsV1::ParagraphBorder]
The text direction of this paragraph. If unset, the value defaults to LEFT_TO_RIGHT since paragraph direction is not inherited. Corresponds to the JSON property `direction` @return [String]
The heading ID of the paragraph. If empty, then this paragraph is not a heading. This property is read-only. Corresponds to the JSON property `headingId` @return [String]
A magnitude in a single direction in the specified units. Corresponds to the JSON property `indentEnd` @return [Google::Apis::DocsV1::Dimension]
A magnitude in a single direction in the specified units. Corresponds to the JSON property `indentFirstLine` @return [Google::Apis::DocsV1::Dimension]
A magnitude in a single direction in the specified units. Corresponds to the JSON property `indentStart` @return [Google::Apis::DocsV1::Dimension]
Whether all lines of the paragraph should be laid out on the same page or column if possible. If unset, the value is inherited from the parent. Corresponds to the JSON property `keepLinesTogether` @return [Boolean]
Whether all lines of the paragraph should be laid out on the same page or column if possible. If unset, the value is inherited from the parent. Corresponds to the JSON property `keepLinesTogether` @return [Boolean]
Whether at least a part of this paragraph should be laid out on the same page or column as the next paragraph if possible. If unset, the value is inherited from the parent. Corresponds to the JSON property `keepWithNext` @return [Boolean]
Whether at least a part of this paragraph should be laid out on the same page or column as the next paragraph if possible. If unset, the value is inherited from the parent. Corresponds to the JSON property `keepWithNext` @return [Boolean]
The amount of space between lines, as a percentage of normal, where normal is represented as 100.0. If unset, the value is inherited from the parent. Corresponds to the JSON property `lineSpacing` @return [Float]
The named style type of the paragraph. Since updating the named style type affects other properties within ParagraphStyle
, the named style type is applied before the other properties are updated. Corresponds to the JSON property `namedStyleType` @return [String]
The shading of a paragraph. Corresponds to the JSON property `shading` @return [Google::Apis::DocsV1::Shading]
A magnitude in a single direction in the specified units. Corresponds to the JSON property `spaceAbove` @return [Google::Apis::DocsV1::Dimension]
A magnitude in a single direction in the specified units. Corresponds to the JSON property `spaceBelow` @return [Google::Apis::DocsV1::Dimension]
The spacing mode for the paragraph. Corresponds to the JSON property `spacingMode` @return [String]
A list of the tab stops for this paragraph. The list of tab stops is not inherited. This property is read-only. Corresponds to the JSON property `tabStops` @return [Array<Google::Apis::DocsV1::TabStop>]
Public Class Methods
# File lib/google/apis/docs_v1/classes.rb, line 3341 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/docs_v1/classes.rb, line 3346 def update!(**args) @alignment = args[:alignment] if args.key?(:alignment) @avoid_widow_and_orphan = args[:avoid_widow_and_orphan] if args.key?(:avoid_widow_and_orphan) @border_between = args[:border_between] if args.key?(:border_between) @border_bottom = args[:border_bottom] if args.key?(:border_bottom) @border_left = args[:border_left] if args.key?(:border_left) @border_right = args[:border_right] if args.key?(:border_right) @border_top = args[:border_top] if args.key?(:border_top) @direction = args[:direction] if args.key?(:direction) @heading_id = args[:heading_id] if args.key?(:heading_id) @indent_end = args[:indent_end] if args.key?(:indent_end) @indent_first_line = args[:indent_first_line] if args.key?(:indent_first_line) @indent_start = args[:indent_start] if args.key?(:indent_start) @keep_lines_together = args[:keep_lines_together] if args.key?(:keep_lines_together) @keep_with_next = args[:keep_with_next] if args.key?(:keep_with_next) @line_spacing = args[:line_spacing] if args.key?(:line_spacing) @named_style_type = args[:named_style_type] if args.key?(:named_style_type) @shading = args[:shading] if args.key?(:shading) @space_above = args[:space_above] if args.key?(:space_above) @space_below = args[:space_below] if args.key?(:space_below) @spacing_mode = args[:spacing_mode] if args.key?(:spacing_mode) @tab_stops = args[:tab_stops] if args.key?(:tab_stops) end