Table of Contents

Class GradientResource

Namespace
BSGameLib.UI.Builder.Models
Assembly
BSGameLib.UI.dll

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

float

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

Point

CenterValue

The Center attribute's text form. Use Center in code.

public string CenterValue { get; set; }

Property Value

string

Kind

Whether the gradient is linear or radial. Linear by default.

public GradientKind Kind { get; set; }

Property Value

GradientKind

Stops

The color stops of the gradient, in order along it.

[Required]
public List<GradientStopResource> Stops { get; set; }

Property Value

List<GradientStopResource>