ArcObjects Library Reference (Animation)  

IAGAnimationTrackKeyframes.MoveKeyframe Method

Moves the keyframe with the given index, inserting it with a different index.

[Visual Basic .NET]
Public Sub MoveKeyframe ( _
    ByVal originIndex As Integer, _
    ByVal destinationIndex As Integer _
)
[C#]
public void MoveKeyframe (
    int originIndex,
    int destinationIndex
);
[C++]
HRESULT MoveKeyframe(
  long originIndex,
  long destinationIndex
);
[C++]

Parameters

originIndex [in]   originIndex is a parameter of type long destinationIndex [in]   destinationIndex is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

This method first insert the keyframe into the destination index, and then remove the original keyframe. Suppose that you have 3 keyframes in a track with indexes 0, 1 and 2. When executing "MoveKeyframe 0, 2", the procedure taken by this method is 0, 1, 2 -> 0, 1, 0, 2 -> 1, 0, 2. Therefore, keyframe 0 gets a new index of 1 after "MoveKeyframe 0, 2" is executed.

See Also

IAGAnimationTrackKeyframes Interface