Class SvgFragment
An SvgFragment represents an SVG fragment that can be the root element or an embedded fragment of an SVG document.
Inherited Members
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
Properties
|
Improve this Doc
View Source
AspectRatio
Gets or sets the aspect of the viewport.
Declaration
public SvgAspectRatio AspectRatio { get; set; }
Property Value
|
Improve this Doc
View Source
Bounds
Gets the bounds of the svg element.
Declaration
public RectangleF Bounds { get; }
Property Value
|
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
|
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
Overrides
|
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
|
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
Overrides
|
Improve this Doc
View Source
ViewBox
Gets or sets the viewport of the element.
Declaration
public SvgViewBox ViewBox { get; set; }
Property Value
|
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
|
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
Methods
|
Improve this Doc
View Source
DeepCopy()
Declaration
public override SvgElement DeepCopy()
Returns
Overrides
|
Improve this Doc
View Source
DeepCopy<T>()
Declaration
public override SvgElement DeepCopy<T>()
where T : SvgElement, new()
Returns
Type Parameters
Overrides
|
Improve this Doc
View Source
GetDimensions()
Declaration
public SizeF GetDimensions()
Returns
|
Improve this Doc
View Source
Declaration
protected override bool PushTransforms(ISvgRenderer renderer)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
Render(ISvgRenderer)
Declaration
protected override void Render(ISvgRenderer renderer)
Parameters
Overrides
Explicit Interface Implementations
|
Improve this Doc
View Source
ISvgBoundable.Bounds
Declaration
RectangleF ISvgBoundable.Bounds { get; }
Returns
|
Improve this Doc
View Source
ISvgBoundable.Location
Declaration
PointF ISvgBoundable.Location { get; }
Returns
|
Improve this Doc
View Source
ISvgBoundable.Size
Declaration
SizeF ISvgBoundable.Size { get; }
Returns
Implements
Extension Methods