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
Properties
AspectRatio
Gets or sets the aspect of the viewport.
public SvgAspectRatio AspectRatio { get; set; }
Property Value
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
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
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
Path
Gets the GraphicsPath for this element.
public GraphicsPath Path { get; }
Property Value
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
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
Y
Gets or sets the position where the top point of the svg should start.
public virtual SvgUnit Y { get; set; }
Property Value
Methods
DeepCopy()
public override SvgElement DeepCopy()
Returns
DeepCopy<T>()
public override SvgElement DeepCopy<T>() where T : SvgElement, new()
Returns
Type Parameters
T
GetDimensions()
public SizeF GetDimensions()
Returns
PushTransforms(ISvgRenderer)
Applies the required transforms to ISvgRenderer.
protected override bool PushTransforms(ISvgRenderer renderer)
Parameters
renderer
ISvgRendererThe ISvgRenderer to be transformed.
Returns
Render(ISvgRenderer)
Renders the SvgElement and contents to the specified ISvgRenderer object.
protected override void Render(ISvgRenderer renderer)
Parameters
renderer
ISvgRendererThe ISvgRenderer object to render to.