Share via


Chart.Subtype Property

Sets or returns the subtype of the filter effect. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property Subtype As Integer
    Get
    Set
'Usage
Dim instance As Chart
Dim value As Integer

value = instance.Subtype

instance.Subtype = value
int Subtype { get; set; }

Property Value

Type: System.Int32
MsoAnimFilterEffectSubtype

Examples

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

Reference

Chart Interface

Chart Members

Microsoft.Office.Interop.PowerPoint Namespace