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

FilterEffect.Reveal 属性 (PowerPoint)FilterEffect.Reveal Property (PowerPoint)

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

确定嵌入对象的显示方式。可读/写。Determines how the embedded objects will be revealed. Read/write.

语法Syntax

表达式显示expression. Reveal

表达式_一个表示FilterEffect对象的变量。_expression A variable that represents a FilterEffect object.

返回值Return Value

MsoTriStateMsoTriState

注解Remarks

设置值的显示的属性的属性值为 msoTrue时筛选器效果类型是msoAnimFilterEffectTypeWipe将显示该形状。设置的值为msoFalse时将会消失的对象。换句话说,如果您的筛选器设置为划出并显示为真,则会擦除效果,并透露为 false,则会擦除出效果。Setting a value of msoTrue for the Reveal property when the filter effect type is msoAnimFilterEffectTypeWipe will make the shape appear. Setting a value of msoFalse will make the object disappear. In other words, if your filter is set to wipe and Reveal is true, you will get a wipe-in effect, and when Reveal is false, you will get a wipe-out effect.

显示属性的值可以是其中一个MsoTriState常量。The value of the Reveal property can be one of these MsoTriState constants.

|| |:-----| |msoFalsemsoFalse| |属性值为 msoTruemsoTrue|

示例Example

以下示例在当前演示文稿的第一张幻灯片中添加一个形状并设置一个筛选效果动画动作。The following example adds a shape to the first slide of the active presentation and sets a filter effect animation behavior.

Sub ChangeFilterEffect()

    Dim sldFirst As Slide
    Dim shpHeart As Shape
    Dim effNew As Effect
    Dim bhvEffect As AnimationBehavior

    Set sldFirst = ActivePresentation.Slides(1)

    Set shpHeart = sldFirst.Shapes.AddShape(Type:=msoShapeHeart, _
        Left:=100, Top:=100, Width:=100, Height:=100)

    Set effNew = sldFirst.TimeLine.MainSequence.AddEffect _
        (Shape:=shpHeart, EffectID:=msoAnimEffectChangeFillColor, _
        Trigger:=msoAnimTriggerAfterPrevious)

    Set bhvEffect = effNew.Behaviors.Add(msoAnimTypeFilter)

    With bhvEffect.FilterEffect
         .Type = msoAnimFilterEffectTypeWipe
         .Subtype = msoAnimFilterEffectSubtypeUp
         .Reveal = msoTrue
    End With

End Sub

另请参阅See also

概念Concepts

FilterEffect 对象FilterEffect Object

© 2018 Microsoft