Table of Contents

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

offset SvgUnit

The offset.

colour Color

The colour.

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

SvgUnit

StopColor

Gets or sets the colour of the gradient stop.

[TypeConverter(typeof(SvgPaintServerFactory))]
public SvgPaintServer StopColor { get; set; }

Property Value

SvgPaintServer

StopOpacity

Gets or sets the opacity of the gradient stop (0-1).

public float StopOpacity { get; set; }

Property Value

float

Methods

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

DeepCopy<T>()

public override SvgElement DeepCopy<T>() where T : SvgElement, new()

Returns

SvgElement

Type Parameters

T

GetColor(SvgElement)

public Color GetColor(SvgElement parent)

Parameters

parent SvgElement

Returns

Color