Class UpdateLayerProperty<T>
Represents a profile editor command that can be used to update a layer property of type T.
public class UpdateLayerProperty<T> : IProfileEditorCommand
Type Parameters
T
- Inheritance
-
objectUpdateLayerProperty<T>
- Implements
Constructors
UpdateLayerProperty(LayerProperty<T>, T, TimeSpan?)
Creates a new instance of the UpdateLayerProperty<T> class.
public UpdateLayerProperty(LayerProperty<T> layerProperty, T newValue, TimeSpan? time)
Parameters
layerPropertyLayerProperty<T>newValueTtimeTimeSpan?
UpdateLayerProperty(LayerProperty<T>, T, T, TimeSpan?)
Creates a new instance of the UpdateLayerProperty<T> class.
public UpdateLayerProperty(LayerProperty<T> layerProperty, T newValue, T originalValue, TimeSpan? time)
Parameters
layerPropertyLayerProperty<T>newValueToriginalValueTtimeTimeSpan?
Properties
DisplayName
Gets the name of the command
public string DisplayName { get; }
Property Value
Methods
Execute()
Executes the command
public void Execute()
Undo()
Undoes the command
public void Undo()