Table of Contents

Class UpdateColorGradient

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

Represents a profile editor command that can be used to update a color gradient.

public class UpdateColorGradient : IProfileEditorCommand
Inheritance
object
UpdateColorGradient
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

colorGradient ColorGradient
stops List<ColorGradientStop>
originalStops List<ColorGradientStop>

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()