Propiedad AnimationBehavior.PropertyEffect (PowerPoint)
Devuelve un objeto PropertyEffect para un comportamiento de animación específico. Solo lectura.
Sintaxis
expresión. PropertyEffect
Expresión Variable que representa un objeto AnimationBehavior .
Valor devuelto
PropertyEffect
Ejemplo:
En el siguiente ejemplo se agrega una forma con un efecto a la presentación activa y se establecen las propiedades del efecto de animación para que la forma cambie de color.
Sub AddShapeSetAnimFill()
Dim effBlinds As Effect
Dim shpRectangle As Shape
Dim animBlinds As AnimationBehavior
'Adds rectangle and sets animation effect
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)
'Sets the duration of the animation
effBlinds.Timing.Duration = 3
'Adds a behavior to the animation
Set animBlinds = effBlinds.Behaviors.Add(msoAnimTypeProperty)
'Sets the animation color effect and the formula to use
With animBlinds.PropertyEffect
.Property = msoAnimColor
.From = RGB(Red:=0, Green:=0, Blue:=255)
.To = RGB(Red:=255, Green:=0, Blue:=0)
End With
End Sub
Consulte también
Soporte técnico y comentarios
¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de