次の方法で共有


AnimationBehavior.RotationEffect プロパティ (PowerPoint)

アニメーション動作の RotationEffect オブジェクトを取得します。 値の取得のみ可能です。

構文

RotationEffect

AnimationBehavior オブジェクトを表す変数。

戻り値

RotationEffect

次の使用例は、スライド 1 に新しい図形を追加し、回転のアニメーション動作を設定します。

Sub AddRotation()

    Dim shpNew As Shape
    Dim effNew As Effect
    Dim aniNew As AnimationBehavior

    Set shpNew = ActivePresentation.Slides(1).Shapes _
        .AddShape(Type:=msoShape5pointStar, Left:=0, _
        Top:=0, Width:=100, Height:=100)

    Set effNew = ActivePresentation.Slides(1).TimeLine.MainSequence _
        .AddEffect(Shape:=shpNew, effectId:=msoAnimEffectCustom)

    Set aniNew = effNew.Behaviors.Add(msoAnimTypeRotation)

    With aniNew.RotationEffect
        'Rotate 270 degrees from current position
        .By = 270
    End With

End Sub

関連項目

AnimationBehavior オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。