Class SvgGradientStop
Represents a colour stop in a gradient.
Inherited Members
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Svg
Assembly: Svg.dll
Syntax
[SvgElement("stop")]
public class SvgGradientStop : SvgElement, ISvgTransformable, ICloneable, ISvgNode
Constructors
| Improve this Doc View SourceSvgGradientStop()
Initializes a new instance of the SvgGradientStop class.
Declaration
public SvgGradientStop()
SvgGradientStop(SvgUnit, Color)
Initializes a new instance of the SvgGradientStop class.
Declaration
public SvgGradientStop(SvgUnit offset, Color colour)
Parameters
| Type | Name | Description |
|---|---|---|
| SvgUnit | offset | The offset. |
| Color | colour | The colour. |
Properties
| Improve this Doc View SourceOffset
Gets or sets the offset, i.e. where the stop begins from the beginning, of the gradient stop.
Declaration
public SvgUnit Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgUnit |
StopColor
Gets or sets the colour of the gradient stop.
Declaration
[TypeConverter(typeof(SvgPaintServerFactory))]
public SvgPaintServer StopColor { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgPaintServer |
StopOpacity
Gets or sets the opacity of the gradient stop (0-1).
Declaration
public float StopOpacity { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
| Improve this Doc View SourceDeepCopy()
Declaration
public override SvgElement DeepCopy()
Returns
| Type | Description |
|---|---|
| SvgElement |
Overrides
| Improve this Doc View SourceDeepCopy<T>()
Declaration
public override SvgElement DeepCopy<T>()
where T : SvgElement, new()
Returns
| Type | Description |
|---|---|
| SvgElement |
Type Parameters
| Name | Description |
|---|---|
| T |
Overrides
| Improve this Doc View SourceGetColor(SvgElement)
Declaration
public Color GetColor(SvgElement parent)
Parameters
| Type | Name | Description |
|---|---|---|
| SvgElement | parent |
Returns
| Type | Description |
|---|---|
| Color |