Class: Google::Apis::SlidesV1::ParagraphStyle
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ParagraphStyle
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb
Overview
Styles that apply to a whole paragraph. If this text is contained in a shape with a parent placeholder, then these paragraph styles may be inherited from the parent. Which paragraph styles are inherited depend on the nesting level of lists:
- A paragraph not in a list will inherit its paragraph style from the paragraph at the 0 nesting level of the list inside the parent placeholder.
- A paragraph in a list will inherit its paragraph style from the paragraph at its corresponding nesting level of the list inside the parent placeholder. Inherited paragraph styles are represented as unset fields in this message.
Instance Attribute Summary collapse
-
#alignment ⇒ String
The text alignment for this paragraph.
-
#direction ⇒ String
The text direction of this paragraph.
-
#indent_end ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
-
#indent_first_line ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
-
#indent_start ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
-
#line_spacing ⇒ Float
The amount of space between lines, as a percentage of normal, where normal is represented as 100.0.
-
#space_above ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
-
#space_below ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
-
#spacing_mode ⇒ String
The spacing mode for the paragraph.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParagraphStyle
constructor
A new instance of ParagraphStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ParagraphStyle
Returns a new instance of ParagraphStyle
3628 3629 3630 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3628 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alignment ⇒ String
The text alignment for this paragraph.
Corresponds to the JSON property alignment
3615 3616 3617 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3615 def alignment @alignment end |
#direction ⇒ String
The text direction of this paragraph. If unset, the value defaults to
LEFT_TO_RIGHT since
text direction is not inherited.
Corresponds to the JSON property direction
3590 3591 3592 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3590 def direction @direction end |
#indent_end ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property indentEnd
3600 3601 3602 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3600 def indent_end @indent_end end |
#indent_first_line ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property indentFirstLine
3626 3627 3628 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3626 def indent_first_line @indent_first_line end |
#indent_start ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property indentStart
3605 3606 3607 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3605 def indent_start @indent_start end |
#line_spacing ⇒ Float
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
3621 3622 3623 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3621 def line_spacing @line_spacing end |
#space_above ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property spaceAbove
3610 3611 3612 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3610 def space_above @space_above end |
#space_below ⇒ Google::Apis::SlidesV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property spaceBelow
3583 3584 3585 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3583 def space_below @space_below end |
#spacing_mode ⇒ String
The spacing mode for the paragraph.
Corresponds to the JSON property spacingMode
3595 3596 3597 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3595 def spacing_mode @spacing_mode end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 |
# File 'generated/google/apis/slides_v1/classes.rb', line 3633 def update!(**args) @space_below = args[:space_below] if args.key?(:space_below) @direction = args[:direction] if args.key?(:direction) @spacing_mode = args[:spacing_mode] if args.key?(:spacing_mode) @indent_end = args[:indent_end] if args.key?(:indent_end) @indent_start = args[:indent_start] if args.key?(:indent_start) @space_above = args[:space_above] if args.key?(:space_above) @alignment = args[:alignment] if args.key?(:alignment) @line_spacing = args[:line_spacing] if args.key?(:line_spacing) @indent_first_line = args[:indent_first_line] if args.key?(:indent_first_line) end |