Search Results for

    Show / Hide Table of Contents

    Class SvgVisualElement

    The class that all SVG elements should derive from when they are to be rendered.

    Inheritance
    Object
    SvgElement
    SvgVisualElement
    SvgForeignObject
    SvgImage
    SvgPathBasedElement
    SvgSwitch
    SvgSymbol
    SvgTextBase
    SvgUse
    Implements
    ISvgTransformable
    ICloneable
    ISvgNode
    ISvgStylable
    ISvgBoundable
    ISvgClipable
    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.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)
    System.Object.ToString()
    Namespace: Svg
    Assembly: Svg.dll
    Syntax
    public abstract class SvgVisualElement : SvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgStylable, ISvgBoundable, ISvgClipable

    Constructors

    | Improve this Doc View Source

    SvgVisualElement()

    Initializes a new instance of the SvgVisualElement class.

    Declaration
    public SvgVisualElement()

    Properties

    | Improve this Doc View Source

    Bounds

    Gets the bounds of the element.

    Declaration
    public abstract RectangleF Bounds { get; }
    Property Value
    Type Description
    RectangleF

    The bounds.

    | Improve this Doc View Source

    Clip

    Gets the associated SvgClipPath if one has been specified.

    Declaration
    public virtual string Clip { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    ClipPath

    Gets the associated SvgClipPath if one has been specified.

    Declaration
    public virtual Uri ClipPath { get; set; }
    Property Value
    Type Description
    Uri
    | Improve this Doc View Source

    ClipRule

    Gets or sets the algorithm which is to be used to determine the clipping region.

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

    Displayable

    Declaration
    protected virtual bool Displayable { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    EnableBackground

    Gets or sets the fill SvgPaintServer of this element.

    Declaration
    public virtual string EnableBackground { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Filter

    Gets the associated SvgFilter if one has been specified.

    Declaration
    public virtual Uri Filter { get; set; }
    Property Value
    Type Description
    Uri
    | Improve this Doc View Source

    Renderable

    Declaration
    protected virtual bool Renderable { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    RequiresSmoothRendering

    Gets or sets a value to determine if anti-aliasing should occur when the element is being rendered.

    Declaration
    protected virtual bool RequiresSmoothRendering { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Visible

    Declaration
    public virtual bool Visible { get; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    Path(ISvgRenderer)

    Gets the for this element.

    Declaration
    public abstract GraphicsPath Path(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer
    Returns
    Type Description
    GraphicsPath
    | Improve this Doc View Source

    Render(ISvgRenderer)

    Renders the SvgElement and contents to the specified object.

    Declaration
    protected override void Render(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer object to render to.

    Overrides
    SvgElement.Render(ISvgRenderer)
    | Improve this Doc View Source

    RenderFill(ISvgRenderer)

    Renders the fill of the SvgVisualElement to the specified ISvgRenderer

    Declaration
    protected virtual void RenderFill(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer object to render to.

    | Improve this Doc View Source

    RenderFillAndStroke(ISvgRenderer)

    Declaration
    protected virtual void RenderFillAndStroke(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer
    | Improve this Doc View Source

    RenderStroke(ISvgRenderer)

    Renders the stroke of the SvgVisualElement to the specified ISvgRenderer

    Declaration
    protected virtual bool RenderStroke(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer object to render to.

    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    ResetClip(ISvgRenderer)

    Resets the clipping region of the specified ISvgRenderer back to where it was before the SetClip(ISvgRenderer) method was called.

    Declaration
    protected virtual void ResetClip(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer to have its clipping region reset.

    | Improve this Doc View Source

    SetClip(ISvgRenderer)

    Sets the clipping region of the specified ISvgRenderer.

    Declaration
    protected virtual void SetClip(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer to have its clipping region set.

    Explicit Interface Implementations

    | Improve this Doc View Source

    ISvgBoundable.Location

    Declaration
    PointF ISvgBoundable.Location { get; }
    Returns
    Type Description
    PointF
    | Improve this Doc View Source

    ISvgBoundable.Size

    Declaration
    SizeF ISvgBoundable.Size { get; }
    Returns
    Type Description
    SizeF
    | Improve this Doc View Source

    ISvgClipable.ResetClip(ISvgRenderer)

    Resets the clipping region of the specified ISvgRenderer back to where it was before the SetClip(ISvgRenderer) method was called.

    Declaration
    void ISvgClipable.ResetClip(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer to have its clipping region reset.

    | Improve this Doc View Source

    ISvgClipable.SetClip(ISvgRenderer)

    Sets the clipping region of the specified ISvgRenderer.

    Declaration
    void ISvgClipable.SetClip(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer to have its clipping region set.

    Implements

    ISvgTransformable
    System.ICloneable
    ISvgNode
    ISvgStylable
    ISvgBoundable
    ISvgClipable

    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