Share via


AnimationBehavior.CommandEffect Property

Returns a CommandEffect object for the specified animation behavior. Read-only.

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

Syntax

'Declaration
ReadOnly Property CommandEffect As CommandEffect
    Get
'Usage
Dim instance As AnimationBehavior
Dim value As CommandEffect

value = instance.CommandEffect
CommandEffect CommandEffect { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.CommandEffect
CommandEffect

Remarks

You can send events, call functions, and send OLE verbs to embedded objects using this property.

Examples

The following example shows how to set a command effect animation behavior.

Set bhvEffect = effectNew.Behaviors.Add(msoAnimTypeCommand)

 

    With bhvEffect.CommandEffect.Type = msoAnimCommandTypeVerb

         .Command = Play

    End With

See Also

Reference

AnimationBehavior Interface

AnimationBehavior Members

Microsoft.Office.Interop.PowerPoint Namespace