Class: Google::Apis::SlidesV1::ParagraphStyle

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ParagraphStyle

Returns a new instance of ParagraphStyle



1248
1249
1250
# File 'generated/google/apis/slides_v1/classes.rb', line 1248

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#alignmentString

The text alignment for this paragraph. Corresponds to the JSON property alignment

Returns:

  • (String)


1235
1236
1237
# File 'generated/google/apis/slides_v1/classes.rb', line 1235

def alignment
  @alignment
end

#directionString

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

Returns:

  • (String)


1210
1211
1212
# File 'generated/google/apis/slides_v1/classes.rb', line 1210

def direction
  @direction
end

#indent_endGoogle::Apis::SlidesV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property indentEnd



1220
1221
1222
# File 'generated/google/apis/slides_v1/classes.rb', line 1220

def indent_end
  @indent_end
end

#indent_first_lineGoogle::Apis::SlidesV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property indentFirstLine



1246
1247
1248
# File 'generated/google/apis/slides_v1/classes.rb', line 1246

def indent_first_line
  @indent_first_line
end

#indent_startGoogle::Apis::SlidesV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property indentStart



1225
1226
1227
# File 'generated/google/apis/slides_v1/classes.rb', line 1225

def indent_start
  @indent_start
end

#line_spacingFloat

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

Returns:

  • (Float)


1241
1242
1243
# File 'generated/google/apis/slides_v1/classes.rb', line 1241

def line_spacing
  @line_spacing
end

#space_aboveGoogle::Apis::SlidesV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property spaceAbove



1230
1231
1232
# File 'generated/google/apis/slides_v1/classes.rb', line 1230

def space_above
  @space_above
end

#space_belowGoogle::Apis::SlidesV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property spaceBelow



1203
1204
1205
# File 'generated/google/apis/slides_v1/classes.rb', line 1203

def space_below
  @space_below
end

#spacing_modeString

The spacing mode for the paragraph. Corresponds to the JSON property spacingMode

Returns:

  • (String)


1215
1216
1217
# File 'generated/google/apis/slides_v1/classes.rb', line 1215

def spacing_mode
  @spacing_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
# File 'generated/google/apis/slides_v1/classes.rb', line 1253

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