Class GradientResource
A named gradient: a Gradient resource of a template.
public class GradientResource : Resource
- Inheritance
-
GradientResource
- Inherited Members
Properties
Angle
The direction of a linear gradient, in degrees, following the CSS convention.
public float Angle { get; set; }
Property Value
Center
The center of a radial gradient, as percentages of the target. (50, 50) by default. Written through CenterValue.
public Point Center { get; set; }
Property Value
CenterValue
The Center attribute's text form. Use Center in code.
public string CenterValue { get; set; }
Property Value
Kind
Whether the gradient is linear or radial. Linear by default.
public GradientKind Kind { get; set; }
Property Value
Stops
The color stops of the gradient, in order along it.
[Required]
public List<GradientStopResource> Stops { get; set; }