Table of contents
TOC
折叠目录
展开目录

EffectParameters 对象 (PowerPoint)EffectParameters Object (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

表示Effect对象,例如颜色、 字体、 大小和方向的各种动画参数。Represents various animation parameters for an Effect object, such as colors, fonts, sizes, and directions.

示例Example

使用EffectParameters属性的效果的对象返回一个EffectParameters对象。下面的示例创建一个形状,设置填充效果,并更改起始和结束填充颜色。Use the EffectParametersproperty of the Effect object to return an EffectParameters object. The following example creates a shape, sets a fill effect, and changes the starting and ending fill colors.

Sub effParam()

    Dim shpNew As Shape
    Dim effNew As Effect

    Set shpNew = ActivePresentation.Slides(1).Shapes _
        .AddShape(Type:=msoShapeHeart, Left:=100, _
        Top:=100, Width:=150, Height:=150)

    Set effNew = ActivePresentation.Slides(1).TimeLine.MainSequence _
        .AddEffect(Shape:=shpNew, EffectID:=msoAnimEffectChangeFillColor, _
        Trigger:=msoAnimTriggerAfterPrevious)

    With effNew.EffectParameters
        .Color1.RGB = RGB(Red:=0, Green:=0, Blue:=255)
        .Color2.RGB = RGB(Red:=255, Green:=0, Blue:=0)
    End With

End Sub

另请参阅See also

概念Concepts

PowerPoint 对象模型引用PowerPoint Object Model Reference

© 2018 Microsoft