Share via


EffectParameters Interface

Represents various animation parameters for an ColorEffect object, such as colors, fonts, sizes, and directions.

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

Syntax

'Declaration
<GuidAttribute("914934E1-5A91-11CF-8700-00AA0060263B")> _
Public Interface EffectParameters
'Usage
Dim instance As EffectParameters
[GuidAttribute("914934E1-5A91-11CF-8700-00AA0060263B")]
public interface EffectParameters

Examples

Use the EffectParameters property 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

Reference

EffectParameters Members

Microsoft.Office.Interop.PowerPoint Namespace