Class SvgGradientStop
- Namespace
- Svg
- Assembly
- Svg.dll
Represents a colour stop in a gradient.
[SvgElement("stop")]
public class SvgGradientStop : SvgElement, ISvgTransformable, ICloneable, ISvgNode
- Inheritance
-
SvgGradientStop
- Implements
- Inherited Members
- Extension Methods
Constructors
SvgGradientStop()
Initializes a new instance of the SvgGradientStop class.
public SvgGradientStop()
SvgGradientStop(SvgUnit, Color)
Initializes a new instance of the SvgGradientStop class.
public SvgGradientStop(SvgUnit offset, Color colour)
Parameters
Properties
Offset
Gets or sets the offset, i.e. where the stop begins from the beginning, of the gradient stop.
public SvgUnit Offset { get; set; }
Property Value
StopColor
Gets or sets the colour of the gradient stop.
[TypeConverter(typeof(SvgPaintServerFactory))]
public SvgPaintServer StopColor { get; set; }
Property Value
StopOpacity
Gets or sets the opacity of the gradient stop (0-1).
public float StopOpacity { get; set; }
Property Value
Methods
DeepCopy()
public override SvgElement DeepCopy()
Returns
DeepCopy<T>()
public override SvgElement DeepCopy<T>() where T : SvgElement, new()
Returns
Type Parameters
T
GetColor(SvgElement)
public Color GetColor(SvgElement parent)
Parameters
parent
SvgElement