Class DuplicateKeyframe
Represents a profile editor command that can be used to duplicate a keyframe at a new position.
public class DuplicateKeyframe : IProfileEditorCommand
- Inheritance
-
objectDuplicateKeyframe
- Implements
Constructors
DuplicateKeyframe(ILayerPropertyKeyframe, TimeSpan)
Creates a new instance of the DeleteKeyframe class.
public DuplicateKeyframe(ILayerPropertyKeyframe keyframe, TimeSpan position)
Parameters
keyframeILayerPropertyKeyframeThe keyframe to duplicate.
positionTimeSpanThe position of the duplicated keyframe.
Properties
DisplayName
Gets the name of the command
public string DisplayName { get; }
Property Value
Duplication
Gets the duplicated keyframe, only available after the command has been executed.
public ILayerPropertyKeyframe? Duplication { get; }
Property Value
Methods
Execute()
Executes the command
public void Execute()
Undo()
Undoes the command
public void Undo()