Search Results for

    Show / Hide Table of Contents

    Class SvgFragment

    An SvgFragment represents an SVG fragment that can be the root element or an embedded fragment of an SVG document.

    Inheritance
    Object
    SvgElement
    SvgFragment
    SvgDocument
    Implements
    ISvgTransformable
    ICloneable
    ISvgNode
    ISvgViewPort
    ISvgBoundable
    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.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.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.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("svg")]
    public class SvgFragment : SvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgViewPort, ISvgBoundable

    Fields

    | Improve this Doc View Source

    Namespace

    Gets the SVG namespace string.

    Declaration
    public static readonly Uri Namespace
    Field Value
    Type Description
    Uri

    Properties

    | Improve this Doc View Source

    AspectRatio

    Gets or sets the aspect of the viewport.

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

    Bounds

    Gets the bounds of the svg element.

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

    The bounds.

    | Improve this Doc View Source

    FontFamily

    Indicates which font family is to be used to render the text.

    Declaration
    public override string FontFamily { get; set; }
    Property Value
    Type Description
    System.String
    Overrides
    SvgElement.FontFamily
    | Improve this Doc View Source

    FontSize

    Refers to the size of the font from baseline to baseline when multiple lines of text are set solid in a multiline layout environment.

    Declaration
    public override SvgUnit FontSize { get; set; }
    Property Value
    Type Description
    SvgUnit
    Overrides
    SvgElement.FontSize
    | Improve this Doc View Source

    Height

    Gets or sets the height of the fragment.

    Declaration
    public SvgUnit Height { get; set; }
    Property Value
    Type Description
    SvgUnit

    The height.

    | Improve this Doc View Source

    Overflow

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

    Path

    Gets the for this element.

    Declaration
    public GraphicsPath Path { get; }
    Property Value
    Type Description
    GraphicsPath
    | Improve this Doc View Source

    SpaceHandling

    Declaration
    public override XmlSpaceHandling SpaceHandling { get; set; }
    Property Value
    Type Description
    XmlSpaceHandling
    Overrides
    SvgElement.SpaceHandling
    | Improve this Doc View Source

    ViewBox

    Gets or sets the viewport of the element.

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

    Width

    Gets or sets the width of the fragment.

    Declaration
    public SvgUnit Width { get; set; }
    Property Value
    Type Description
    SvgUnit

    The width.

    | Improve this Doc View Source

    X

    Gets or sets the position where the left point of the svg should start.

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

    Y

    Gets or sets the position where the top point of the svg should start.

    Declaration
    public virtual SvgUnit Y { get; set; }
    Property Value
    Type Description
    SvgUnit

    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

    GetDimensions()

    Declaration
    public SizeF GetDimensions()
    Returns
    Type Description
    SizeF
    | Improve this Doc View Source

    PushTransforms(ISvgRenderer)

    Applies the required transforms to ISvgRenderer.

    Declaration
    protected override bool PushTransforms(ISvgRenderer renderer)
    Parameters
    Type Name Description
    ISvgRenderer renderer

    The ISvgRenderer to be transformed.

    Returns
    Type Description
    Boolean
    Overrides
    SvgElement.PushTransforms(ISvgRenderer)
    | Improve this Doc View Source

    Render(ISvgRenderer)

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

    Explicit Interface Implementations

    | Improve this Doc View Source

    ISvgBoundable.Bounds

    Declaration
    RectangleF ISvgBoundable.Bounds { get; }
    Returns
    Type Description
    RectangleF
    | 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

    Implements

    ISvgTransformable
    System.ICloneable
    ISvgNode
    ISvgViewPort
    ISvgBoundable

    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