Table of Contents

Class SvgFragment

Namespace
Svg
Assembly
Svg.dll

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

[SvgElement("svg")]
public class SvgFragment : SvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgViewPort, ISvgBoundable
Inheritance
SvgFragment
Implements
Derived
Inherited Members
Extension Methods

Fields

Namespace

Gets the SVG namespace string.

public static readonly Uri Namespace

Field Value

Uri

Properties

AspectRatio

Gets or sets the aspect of the viewport.

public SvgAspectRatio AspectRatio { get; set; }

Property Value

SvgAspectRatio

Bounds

Gets the bounds of the svg element.

public RectangleF Bounds { get; }

Property Value

RectangleF

The bounds.

FontFamily

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

public override string FontFamily { get; set; }

Property Value

string

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.

public override SvgUnit FontSize { get; set; }

Property Value

SvgUnit

Height

Gets or sets the height of the fragment.

public SvgUnit Height { get; set; }

Property Value

SvgUnit

The height.

Overflow

public virtual SvgOverflow Overflow { get; set; }

Property Value

SvgOverflow

Path

Gets the GraphicsPath for this element.

public GraphicsPath Path { get; }

Property Value

GraphicsPath

SpaceHandling

Gets or sets the space handling.

public override XmlSpaceHandling SpaceHandling { get; set; }

Property Value

XmlSpaceHandling

The space handling.

ViewBox

Gets or sets the viewport of the element.

public SvgViewBox ViewBox { get; set; }

Property Value

SvgViewBox

Width

Gets or sets the width of the fragment.

public SvgUnit Width { get; set; }

Property Value

SvgUnit

The width.

X

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

public virtual SvgUnit X { get; set; }

Property Value

SvgUnit

Y

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

public virtual SvgUnit Y { get; set; }

Property Value

SvgUnit

Methods

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

DeepCopy<T>()

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

Returns

SvgElement

Type Parameters

T

GetDimensions()

public SizeF GetDimensions()

Returns

SizeF

PushTransforms(ISvgRenderer)

Applies the required transforms to ISvgRenderer.

protected override bool PushTransforms(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

The ISvgRenderer to be transformed.

Returns

bool

Render(ISvgRenderer)

Renders the SvgElement and contents to the specified ISvgRenderer object.

protected override void Render(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

The ISvgRenderer object to render to.