Show / Hide Table of Contents

Class GradientSerialized

Serializable (pure-data) object representing a Gradient.

Inheritance
Object
GradientSerialized
Namespace: SadRogue.Primitives.SerializedTypes
Assembly: TheSadRogue.Primitives.dll
Syntax
public sealed class GradientSerialized : ValueType

Fields

Stops

Colors/stop locations that describe the gradient.

Declaration
public List<GradientStopSerialized> Stops
Field Value
Type Description
List<GradientStopSerialized>

Operators

Implicit(Gradient to GradientSerialized)

Converts Gradient to GradientSerialized.

Declaration
public static implicit operator GradientSerialized(Gradient gradient)
Parameters
Type Name Description
Gradient gradient
Returns
Type Description
GradientSerialized

Implicit(GradientSerialized to Gradient)

Converts GradientSerialized to Gradient.

Declaration
public static implicit operator Gradient(GradientSerialized serialized)
Parameters
Type Name Description
GradientSerialized serialized
Returns
Type Description
Gradient

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>, EventHandler<ValueChangedEventArgs<TProperty>>)
In This Article
Back to top Generated by DocFX