Behaviors Property

Microsoft PowerPoint Visual Basic

collection.

expression.Behaviors

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

To return a single AnimationBehavior object in the AnimationBehaviors collection, use the Item method or Behaviors(index), where index is the index number of the AnimationBehavior object in the AnimationBehaviors collection.

Example

The following example returns a specific animation behavior type in the active presentation.

Sub ReturnTypeValue
    MsgBox ActiveWindow.Selection.SlideRange(1).TimeLine _
        .MainSequence(1).Behaviors.Item(1).Type
End Sub