GradientChangedEventArgs

EventArgs
Arguments used in the GradientChanged event.

Constructors

GradientChangedEventArgs

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

Properties

Intermediate

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

IsSuppressed

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

NewGradient

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

OldGradient

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

Methods

SuppressChange

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