GradientChangedEventArgs

EventArgs
Arguments used in the GradientChanged event.

Constructors

GradientChangedEventArgs

#
public GradientChangedEventArgs(Gradient oldGradient, Gradient newGradient, bool intermediate)
Construct a new GradientChangedEventArgs.
oldGradient (Gradient)Gradient prior to change.
newGradient (Gradient)Gradient after change.
intermediate (bool)Value indicating whether the change is intermediate.

Properties

Intermediate

#
public bool Intermediate { get; }
Gets whether this event represents an intermediate change.

IsSuppressed

#
public bool IsSuppressed { get; }
Gets whether the change has been supressed. If this property returns true, the new gradient will not be allowed to replace the old gradient.

NewGradient

#
public Gradient NewGradient { get; }
Gets the new gradient.

OldGradient

#
public Gradient OldGradient { get; }
Gets the gradient prior to the change.

Methods

SuppressChange

#
public void SuppressChange()
Call this method to suppress the change, in which case the old gradient will be re-instated.