Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

Class SvgDefs

Represents a SVG 'defs' element that can contain definitions for reuse by other elements.

Inheritance
object
SvgElement
SvgDefs
Implements
IXmlSerializable
IEquatable<SvgElement>
ISvgElementContainer
Inherited Members
SvgElement.id
SvgElement.ID
SvgElement.RootDocument
SvgElement.Root
SvgElement.Parent
SvgElement.ViewPort
SvgElement.ViewPortWidth
SvgElement.ViewPortHeight
SvgElement.GetSchema()
SvgElement.WriteXml(XmlWriter)
SvgElement.ReadXml(XmlReader)
SvgElement.ToSvgGroup()
SvgElement.ToSvgDocument()
SvgElement.Attributes()
SvgElement.Equals(object)
SvgElement.Equals(SvgElement)
SvgElement.InformedEquals(SvgElement)
SvgElement.GetHashCode()
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenSvg.SvgNodes
Assembly: OpenSvg.dll
Syntax
public class SvgDefs : SvgElement, IXmlSerializable, IEquatable<SvgElement>, ISvgElementContainer

Properties

| Edit this page View Source

ChildElements

Declaration
public List<SvgStyle> ChildElements { get; set; }
Property Value
Type Description
List<SvgStyle>
| Edit this page View Source

SvgName

Gets or sets the name of the SVG element.

Declaration
public override string SvgName { get; }
Property Value
Type Description
string
Overrides
SvgElement.SvgName

Methods

| Edit this page View Source

Add(SvgElement)

Adds a child element to the current element.

Declaration
public void Add(SvgElement child)
Parameters
Type Name Description
SvgElement child

The child element to add.

| Edit this page View Source

Add(SvgStyle)

Declaration
public void Add(SvgStyle svgStyle)
Parameters
Type Name Description
SvgStyle svgStyle
| Edit this page View Source

AddEmbeddedFont(SvgFont)

Adds an embedded font to the SVG definitions.

Declaration
public void AddEmbeddedFont(SvgFont svgFont)
Parameters
Type Name Description
SvgFont svgFont

The font to embed.

| Edit this page View Source

Children()

Gets the children of the current element.

Declaration
public IEnumerable<SvgElement> Children()
Returns
Type Description
IEnumerable<SvgElement>

An enumerable of SvgElement containing the children of the current element.

| Edit this page View Source

Descendants()

Returns an enumerable of SvgElement containing the descendants (children and their children down to the leaf level) of the specified type.

Declaration
public IEnumerable<SvgElement> Descendants()
Returns
Type Description
IEnumerable<SvgElement>

An enumerable of SvgElement containing the descendants of the specified type.

Implements

IXmlSerializable
IEquatable<T>
ISvgElementContainer