class Google::Apis::SlidesV1::ShapeProperties

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.

Attributes

autofit[RW]

The autofit properties of a Shape. Corresponds to the JSON property `autofit` @return [Google::Apis::SlidesV1::Autofit]

content_alignment[RW]

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` @return [String]

outline[RW]

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` @return [Google::Apis::SlidesV1::Outline]

shadow[RW]

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` @return [Google::Apis::SlidesV1::Shadow]

shape_background_fill[RW]

The shape background fill. Corresponds to the JSON property `shapeBackgroundFill` @return [Google::Apis::SlidesV1::ShapeBackgroundFill]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/slides_v1/classes.rb, line 3448
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/slides_v1/classes.rb, line 3453
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