This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Animation > ESRI.ArcGIS.Animation > Interfaces > IA > IAGAnimationTrackKeyframes Interface > IAGAnimationTrackKeyframes.MoveKeyframe Method (ArcObjects .NET 10.4 SDK) |
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
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.