Table of Contents

Class MoveKeyframe

Namespace
Artemis.UI.Shared.Services.ProfileEditor.Commands
Assembly
Artemis.UI.Shared.dll

Represents a profile editor command that can be used to change the position of a keyframe.

public class MoveKeyframe : IProfileEditorCommand
Inheritance
object
MoveKeyframe
Implements

Constructors

MoveKeyframe(ILayerPropertyKeyframe, TimeSpan)

Creates a new instance of the MoveKeyframe class.

public MoveKeyframe(ILayerPropertyKeyframe keyframe, TimeSpan position)

Parameters

keyframe ILayerPropertyKeyframe
position TimeSpan

MoveKeyframe(ILayerPropertyKeyframe, TimeSpan, TimeSpan)

Creates a new instance of the MoveKeyframe class.

public MoveKeyframe(ILayerPropertyKeyframe keyframe, TimeSpan position, TimeSpan originalPosition)

Parameters

keyframe ILayerPropertyKeyframe
position TimeSpan
originalPosition TimeSpan

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Methods

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()