Table of contents
TOC
Collapse the table of content
Expand the table of content

PropertyEffect.Property Property (PowerPoint)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sets or returns an MsoAnimProperty constant that represents an animation property. Read/write.

Syntax

expression. Property

expression A variable that represents a PropertyEffect object.

Return Value

MsoAnimProperty

Example

The following example adds a shape, adds a three-second fill animation to that shape, and sets the fill animation to color.

Sub AddShapeSetAnimFill()

    Dim effBlinds As Effect
    Dim shpRectangle As Shape
    Dim animProperty As AnimationBehavior

    Set shpRectangle = ActivePresentation.Slides(1).Shapes _
        .AddShape(Type:=msoShapeRectangle, Left:=100, _
        Top:=100, Width:=50, Height:=50)

    Set effBlinds = ActivePresentation.Slides(1).TimeLine.MainSequence _
        .AddEffect(Shape:=shpRectangle, effectId:=msoAnimEffectBlinds)

    effBlinds.Timing.Duration = 3
    Set animProperty = effBlinds.Behaviors.Add(msoAnimTypeProperty)

    With animProperty.PropertyEffect
        .Property = msoAnimColor
        .From = RGB(Red:=0, Green:=0, Blue:=255)
        .To = RGB(Red:=255, Green:=0, Blue:=0)
    End With

End Sub

See also

Concepts

PropertyEffect Object

© 2018 Microsoft