Search Results for

    Show / Hide Table of Contents

    Class SvgGradientServer

    Provides the base class for all paint servers that wish to render a gradient.

    Inheritance
    Object
    SvgElement
    SvgPaintServer
    SvgGradientServer
    SvgLinearGradientServer
    SvgRadialGradientServer
    Implements
    ISvgTransformable
    ICloneable
    ISvgNode
    Inherited Members
    SvgPaintServer.GetCallback
    SvgPaintServer.None
    SvgPaintServer.Inherit
    SvgPaintServer.NotSet
    SvgPaintServer.ToString()
    SvgPaintServer.Render(ISvgRenderer)
    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.ChildAdded
    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.DeepCopy()
    SvgElement.ISvgNode.DeepCopy()
    SvgElement.DeepCopy<T>()
    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.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)
    Namespace: Svg
    Assembly: Svg.dll
    Syntax
    public abstract class SvgGradientServer : SvgPaintServer, ISvgTransformable, ICloneable, ISvgNode

    Properties

    | Improve this Doc View Source

    EffectiveGradientTransform

    Declaration
    protected Matrix EffectiveGradientTransform { get; }
    Property Value
    Type Description
    Matrix
    | Improve this Doc View Source

    GradientTransform

    Declaration
    public SvgTransformCollection GradientTransform { get; set; }
    Property Value
    Type Description
    SvgTransformCollection
    | Improve this Doc View Source

    GradientUnits

    Gets or sets the coordinate system of the gradient.

    Declaration
    public SvgCoordinateUnits GradientUnits { get; set; }
    Property Value
    Type Description
    SvgCoordinateUnits
    | Improve this Doc View Source

    InheritGradient

    Gets or sets another gradient fill from which to inherit the stops from.

    Declaration
    [SvgAttribute("href", "http://www.w3.org/1999/xlink")]
    public SvgDeferredPaintServer InheritGradient { get; set; }
    Property Value
    Type Description
    SvgDeferredPaintServer
    | Improve this Doc View Source

    SpreadMethod

    Specifies what happens if the gradient starts or ends inside the bounds of the target rectangle.

    Declaration
    public SvgGradientSpreadMethod SpreadMethod { get; set; }
    Property Value
    Type Description
    SvgGradientSpreadMethod
    | 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
    | Improve this Doc View Source

    Stops

    Gets the ramp of colors to use on a gradient.

    Declaration
    public List<SvgGradientStop> Stops { get; }
    Property Value
    Type Description
    List<SvgGradientStop>

    Methods

    | Improve this Doc View Source

    AddElement(SvgElement, Int32)

    Called by the underlying SvgElement when an element has been added to the 'Children' collection.

    Declaration
    protected override void AddElement(SvgElement child, int index)
    Parameters
    Type Name Description
    SvgElement child

    The SvgElement that has been added.

    Int32 index

    An Int32 representing the index where the element was added to the collection.

    Overrides
    SvgElement.AddElement(SvgElement, Int32)
    | Improve this Doc View Source

    CalculateDistance(PointF, PointF)

    Declaration
    protected static double CalculateDistance(PointF first, PointF second)
    Parameters
    Type Name Description
    PointF first
    PointF second
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    CalculateLength(PointF)

    Declaration
    protected static float CalculateLength(PointF vector)
    Parameters
    Type Name Description
    PointF vector
    Returns
    Type Description
    Single
    | Improve this Doc View Source

    CreateBrush(SvgVisualElement, ISvgRenderer, Single, Boolean)

    Declaration
    protected abstract Brush CreateBrush(SvgVisualElement renderingElement, ISvgRenderer renderer, float opacity, bool forStroke)
    Parameters
    Type Name Description
    SvgVisualElement renderingElement
    ISvgRenderer renderer
    Single opacity
    Boolean forStroke
    Returns
    Type Description
    Brush
    | Improve this Doc View Source

    GetBrush(SvgVisualElement, ISvgRenderer, Single, Boolean)

    Declaration
    public override Brush GetBrush(SvgVisualElement styleOwner, ISvgRenderer renderer, float opacity, bool forStroke = false)
    Parameters
    Type Name Description
    SvgVisualElement styleOwner
    ISvgRenderer renderer
    Single opacity
    Boolean forStroke
    Returns
    Type Description
    Brush
    Overrides
    SvgPaintServer.GetBrush(SvgVisualElement, ISvgRenderer, Single, Boolean)
    | Improve this Doc View Source

    GetColorBlend(ISvgRenderer, Single, Boolean)

    Gets a representing the SvgGradientServer's gradient stops.

    Declaration
    protected ColorBlend GetColorBlend(ISvgRenderer renderer, float opacity, bool radial)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The renderer ISvgRenderer.

    Single opacity

    The opacity of the colour blend.

    Boolean radial

    True if it's a radial gradiant.

    Returns
    Type Description
    ColorBlend
    | Improve this Doc View Source

    NormalizeUnit(SvgUnit)

    Declaration
    protected SvgUnit NormalizeUnit(SvgUnit orig)
    Parameters
    Type Name Description
    SvgUnit orig
    Returns
    Type Description
    SvgUnit
    | Improve this Doc View Source

    RemoveElement(SvgElement)

    Called by the underlying SvgElement when an element has been removed from the 'Children' collection.

    Declaration
    protected override void RemoveElement(SvgElement child)
    Parameters
    Type Name Description
    SvgElement child

    The SvgElement that has been removed.

    Overrides
    SvgElement.RemoveElement(SvgElement)

    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