Class UpdateColorGradient
Represents a profile editor command that can be used to update a color gradient.
public class UpdateColorGradient : IProfileEditorCommand
- Inheritance
-
objectUpdateColorGradient
- Implements
Constructors
UpdateColorGradient(ColorGradient, List<ColorGradientStop>, List<ColorGradientStop>?)
Creates a new instance of the UpdateColorGradient class.
public UpdateColorGradient(ColorGradient colorGradient, List<ColorGradientStop> stops, List<ColorGradientStop>? originalStops)
Parameters
colorGradientColorGradientstopsList<ColorGradientStop>originalStopsList<ColorGradientStop>
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()