Class: Google::Apis::SlidesV1::ShapeProperties
- Inherits:
-
Object
- Object
- Google::Apis::SlidesV1::ShapeProperties
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/slides_v1/classes.rb,
lib/google/apis/slides_v1/representations.rb,
lib/google/apis/slides_v1/representations.rb
Overview
The properties of a Shape. If the shape is a placeholder shape as determined by the placeholder field, then these properties may be inherited from a parent placeholder shape. Determining the rendered value of the property depends on the corresponding property_state field value. Any text autofit settings on the shape are automatically deactivated by requests that can impact how text fits in the shape.
Instance Attribute Summary collapse
-
#autofit ⇒ Google::Apis::SlidesV1::Autofit
The autofit properties of a Shape.
-
#content_alignment ⇒ String
The alignment of the content in the shape.
-
#link ⇒ Google::Apis::SlidesV1::Link
A hypertext link.
-
#outline ⇒ Google::Apis::SlidesV1::Outline
The outline of a PageElement.
-
#shadow ⇒ Google::Apis::SlidesV1::Shadow
The shadow properties of a page element.
-
#shape_background_fill ⇒ Google::Apis::SlidesV1::ShapeBackgroundFill
The shape background fill.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ShapeProperties
constructor
A new instance of ShapeProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ShapeProperties
Returns a new instance of ShapeProperties.
3430 3431 3432 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autofit ⇒ Google::Apis::SlidesV1::Autofit
The autofit properties of a Shape.
Corresponds to the JSON property autofit
3394 3395 3396 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3394 def autofit @autofit end |
#content_alignment ⇒ String
The alignment of the content in the shape. If unspecified, the alignment is
inherited from a parent placeholder if it exists. If the shape has no parent,
the default alignment matches the alignment for new shapes created in the
Slides editor.
Corresponds to the JSON property contentAlignment
3402 3403 3404 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3402 def content_alignment @content_alignment end |
#link ⇒ Google::Apis::SlidesV1::Link
A hypertext link.
Corresponds to the JSON property link
3407 3408 3409 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3407 def link @link end |
#outline ⇒ Google::Apis::SlidesV1::Outline
The outline of a PageElement. If these fields are unset, they may be inherited
from a parent placeholder if it exists. If there is no parent, the fields will
default to the value used for new page elements created in the Slides editor,
which may depend on the page element kind.
Corresponds to the JSON property outline
3415 3416 3417 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3415 def outline @outline end |
#shadow ⇒ Google::Apis::SlidesV1::Shadow
The shadow properties of a page element. If these fields are unset, they may
be inherited from a parent placeholder if it exists. If there is no parent,
the fields will default to the value used for new page elements created in the
Slides editor, which may depend on the page element kind.
Corresponds to the JSON property shadow
3423 3424 3425 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3423 def shadow @shadow end |
#shape_background_fill ⇒ Google::Apis::SlidesV1::ShapeBackgroundFill
The shape background fill.
Corresponds to the JSON property shapeBackgroundFill
3428 3429 3430 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3428 def shape_background_fill @shape_background_fill end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3435 3436 3437 3438 3439 3440 3441 3442 |
# File 'lib/google/apis/slides_v1/classes.rb', line 3435 def update!(**args) @autofit = args[:autofit] if args.key?(:autofit) @content_alignment = args[:content_alignment] if args.key?(:content_alignment) @link = args[:link] if args.key?(:link) @outline = args[:outline] if args.key?(:outline) @shadow = args[:shadow] if args.key?(:shadow) @shape_background_fill = args[:shape_background_fill] if args.key?(:shape_background_fill) end |