Table of Contents

Class LayerPropertyKeyframe<T>

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents a keyframe on a LayerProperty<T> containing a value and a timestamp

public class LayerPropertyKeyframe<T> : CorePropertyChanged, ILayerPropertyKeyframe

Type Parameters

T
Represents a keyframe on a containing a value and a timestamp
Inheritance
LayerPropertyKeyframe<T>
Implements

Constructors

LayerPropertyKeyframe(T, TimeSpan, Functions, LayerProperty<T>)

Creates a new instance of the LayerPropertyKeyframe<T> class

public LayerPropertyKeyframe(T value, TimeSpan position, Easings.Functions easingFunction, LayerProperty<T> layerProperty)

Parameters

value T

The value of the keyframe

position TimeSpan

The position of this keyframe in the timeline

easingFunction Easings.Functions

The easing function applied on the value of the keyframe

layerProperty LayerProperty<T>

The layer property this keyframe is applied to

Properties

EasingFunction

Gets or sets the easing function applied on the value of the keyframe

public Easings.Functions EasingFunction { get; set; }

Property Value

Easings.Functions

LayerProperty

The layer property this keyframe is applied to

public LayerProperty<T> LayerProperty { get; }

Property Value

LayerProperty<T>

Position

Gets or sets the position of this keyframe in the timeline

public TimeSpan Position { get; set; }

Property Value

TimeSpan

UntypedLayerProperty

Gets an untyped reference to the layer property of this keyframe

public ILayerProperty UntypedLayerProperty { get; }

Property Value

ILayerProperty

Value

The value of this keyframe

public T Value { get; set; }

Property Value

T

Methods

CreateCopy()

Creates a copy of this keyframe.

Note: The copied keyframe is not added to the layer property.

public ILayerPropertyKeyframe CreateCopy()

Returns

ILayerPropertyKeyframe

The resulting copy

GetKeyframeEntity()

Gets the entity this keyframe uses for persistent storage

public KeyframeEntity GetKeyframeEntity()

Returns

KeyframeEntity

Remove()

Removes the keyframe from the layer property

public void Remove()