Class: Google::Apis::SlidesV1::ShapeProperties

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShapeProperties

Returns a new instance of ShapeProperties.



3383
3384
3385
# File 'generated/google/apis/slides_v1/classes.rb', line 3383

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

Instance Attribute Details

#content_alignmentString

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

Returns:

  • (String)


3355
3356
3357
# File 'generated/google/apis/slides_v1/classes.rb', line 3355

def content_alignment
  @content_alignment
end

A hypertext link. Corresponds to the JSON property link



3360
3361
3362
# File 'generated/google/apis/slides_v1/classes.rb', line 3360

def link
  @link
end

#outlineGoogle::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



3368
3369
3370
# File 'generated/google/apis/slides_v1/classes.rb', line 3368

def outline
  @outline
end

#shadowGoogle::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



3376
3377
3378
# File 'generated/google/apis/slides_v1/classes.rb', line 3376

def shadow
  @shadow
end

#shape_background_fillGoogle::Apis::SlidesV1::ShapeBackgroundFill

The shape background fill. Corresponds to the JSON property shapeBackgroundFill



3381
3382
3383
# File 'generated/google/apis/slides_v1/classes.rb', line 3381

def shape_background_fill
  @shape_background_fill
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3388
3389
3390
3391
3392
3393
3394
# File 'generated/google/apis/slides_v1/classes.rb', line 3388

def update!(**args)
  @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