Search Results for

    Show / Hide Table of Contents

    Class SvgGradientStop

    Represents a colour stop in a gradient.

    Inheritance
    Object
    SvgElement
    SvgGradientStop
    Implements
    ISvgTransformable
    ICloneable
    ISvgNode
    Inherited Members
    SvgElement.AddStyle(String, String, Int32)
    SvgElement.FlushStyles(Boolean)
    SvgElement.ContainsAttribute(String)
    SvgElement.TryGetAttribute(String, String)
    SvgElement.HttpClient
    SvgElement.Namespaces
    SvgElement.ElementNamespace
    SvgElement.ElementName
    SvgElement.Color
    SvgElement.Content
    SvgElement.Events
    SvgElement.Load
    SvgElement.Children
    SvgElement.Nodes
    SvgElement.Descendants()
    SvgElement.HasChildren()
    SvgElement.Parent
    SvgElement.Parents
    SvgElement.ParentsAndSelf
    SvgElement.OwnerDocument
    SvgElement.Attributes
    SvgElement.Writing
    SvgElement.GetAttribute<TAttributeType>(String, Boolean, TAttributeType)
    SvgElement.CustomAttributes
    SvgElement.Transforms
    SvgElement.ID
    SvgElement.SpaceHandling
    SvgElement.SetAndForceUniqueID(String, Boolean, Action<SvgElement, String, String>)
    SvgElement.AddElement(SvgElement, Int32)
    SvgElement.ChildAdded
    SvgElement.RemoveElement(SvgElement)
    SvgElement.InitialiseFromXML(XmlReader, SvgDocument)
    SvgElement.ShouldWriteElement()
    SvgElement.WriteStartElement(XmlWriter)
    SvgElement.WriteEndElement(XmlWriter)
    SvgElement.WriteAttributes(XmlWriter)
    SvgElement.AutoPublishEvents
    SvgElement.Write(XmlWriter)
    SvgElement.WriteChildren(XmlWriter)
    SvgElement.Clone()
    SvgElement.ISvgNode.DeepCopy()
    SvgElement.AttributeChanged
    SvgElement.OnAttributeChanged(AttributeEventArgs)
    SvgElement.ContentChanged
    SvgElement.OnContentChanged(ContentEventArgs)
    SvgElement.RegisterEvents(ISvgEventCaller)
    SvgElement.UnregisterEvents(ISvgEventCaller)
    SvgElement.Click
    SvgElement.MouseDown
    SvgElement.MouseUp
    SvgElement.MouseMove
    SvgElement.MouseScroll
    SvgElement.MouseOver
    SvgElement.MouseOut
    SvgElement.CreateMouseEventAction(Action<Object, MouseArg>)
    SvgElement.RaiseMouseClick(Object, MouseArg)
    SvgElement.RaiseMouseDown(Object, MouseArg)
    SvgElement.RaiseMouseUp(Object, MouseArg)
    SvgElement.RaiseMouseMove(Object, MouseArg)
    SvgElement.RaiseMouseOver(Object, MouseArg)
    SvgElement.RaiseMouseOut(Object, MouseArg)
    SvgElement.OnMouseScroll(Int32, Boolean, Boolean, Boolean, String)
    SvgElement.RaiseMouseScroll(Object, MouseScrollArg)
    SvgElement.PushTransforms(ISvgRenderer)
    SvgElement.PopTransforms(ISvgRenderer)
    SvgElement.ISvgTransformable.PushTransforms(ISvgRenderer)
    SvgElement.ISvgTransformable.PopTransforms(ISvgRenderer)
    SvgElement.TransformedBounds(RectangleF)
    SvgElement.RenderElement(ISvgRenderer)
    SvgElement.Render(ISvgRenderer)
    SvgElement.RenderChildren(ISvgRenderer)
    SvgElement.AddPaths(SvgElement, GraphicsPath)
    SvgElement.GetPaths(SvgElement, ISvgRenderer)
    SvgElement.IsPathDirty
    SvgElement.InvalidateChildPaths()
    SvgElement.FixOpacityValue(Single)
    SvgElement.Fill
    SvgElement.Stroke
    SvgElement.FillRule
    SvgElement.FillOpacity
    SvgElement.StrokeWidth
    SvgElement.StrokeLineCap
    SvgElement.StrokeLineJoin
    SvgElement.StrokeMiterLimit
    SvgElement.StrokeDashArray
    SvgElement.StrokeDashOffset
    SvgElement.StrokeOpacity
    SvgElement.Opacity
    SvgElement.ShapeRendering
    SvgElement.ColorInterpolation
    SvgElement.ColorInterpolationFilters
    SvgElement.Visibility
    SvgElement.Display
    SvgElement.TextAnchor
    SvgElement.BaselineShift
    SvgElement.FontFamily
    SvgElement.FontSize
    SvgElement.FontStyle
    SvgElement.FontVariant
    SvgElement.TextDecoration
    SvgElement.FontWeight
    SvgElement.FontStretch
    SvgElement.TextTransformation
    SvgElement.Font
    SvgElement.ValidateFontFamily(String, SvgDocument, SvgFontManager)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    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 Source

    SvgGradientStop()

    Initializes a new instance of the SvgGradientStop class.

    Declaration
    public SvgGradientStop()
    | Improve this Doc View Source

    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 Source

    Offset

    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
    | Improve this Doc View Source

    StopColor

    Gets or sets the colour of the gradient stop.

    Declaration
    [TypeConverter(typeof(SvgPaintServerFactory))]
    public SvgPaintServer StopColor { get; set; }
    Property Value
    Type Description
    SvgPaintServer
    | Improve this Doc View Source

    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 Source

    DeepCopy()

    Declaration
    public override SvgElement DeepCopy()
    Returns
    Type Description
    SvgElement
    Overrides
    SvgElement.DeepCopy()
    | Improve this Doc View Source

    DeepCopy<T>()

    Declaration
    public override SvgElement DeepCopy<T>()
        where T : SvgElement, new()
    Returns
    Type Description
    SvgElement
    Type Parameters
    Name Description
    T
    Overrides
    SvgElement.DeepCopy<T>()
    | Improve this Doc View Source

    GetColor(SvgElement)

    Declaration
    public Color GetColor(SvgElement parent)
    Parameters
    Type Name Description
    SvgElement parent
    Returns
    Type Description
    Color

    Implements

    ISvgTransformable
    System.ICloneable
    ISvgNode

    Extension Methods

    SvgExtentions.GetXML(SvgElement)
    SvgExtentions.HasNonEmptyCustomAttribute(SvgElement, String)
    SvgExtentions.ApplyRecursive(SvgElement, Action<SvgElement>)
    SvgExtentions.ApplyRecursiveDepthFirst(SvgElement, Action<SvgElement>)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX