Table of Contents

Class DuplicateKeyframe

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

Represents a profile editor command that can be used to duplicate a keyframe at a new position.

public class DuplicateKeyframe : IProfileEditorCommand
Inheritance
object
DuplicateKeyframe
Implements

Constructors

DuplicateKeyframe(ILayerPropertyKeyframe, TimeSpan)

Creates a new instance of the DeleteKeyframe class.

public DuplicateKeyframe(ILayerPropertyKeyframe keyframe, TimeSpan position)

Parameters

keyframe ILayerPropertyKeyframe

The keyframe to duplicate.

position TimeSpan

The position of the duplicated keyframe.

Properties

DisplayName

Gets the name of the command

public string DisplayName { get; }

Property Value

string

Duplication

Gets the duplicated keyframe, only available after the command has been executed.

public ILayerPropertyKeyframe? Duplication { get; }

Property Value

ILayerPropertyKeyframe

Methods

Execute()

Executes the command

public void Execute()

Undo()

Undoes the command

public void Undo()