• Eric Domke's avatar
    Refactoring while working through W3C tests · d5c659a5
    Eric Domke authored
    - Adding W3C test cases and a test fixture
    - Fixed support for CSS stylesheets (particularly when class names are
    referenced)
    - Refactoring unit calculations so that percentages and fractions
    calculate more accurately
    - SvgImage:
    - Support PreserveAspectRatio attribute
    - Support for referencing svg images
    - Refactored text rendering to use the AttributeCollection inheritance
    scheme
    - Initial attempt at 'ex' unit support
    - Added support for system color names
    - Changed parsing of entities to support XML entities
    - Supporting loading of a svg document directly from a XmlDocument with
    requiring serializing the document as a string first.
    - ...
    d5c659a5
SvgDefinitionList.cs 869 bytes
using System;
using System.Collections.Generic;
using System.Text;
namespace Svg
{
    /// <summary>
    /// Represents a list of re-usable SVG components.
    /// </summary>
    [SvgElement("defs")]
    public class SvgDefinitionList : SvgElement
        /// <summary>
        /// Initializes a new instance of the <see cref="SvgDefinitionList"/> class.
        /// </summary>
        public SvgDefinitionList()
        /// <summary>
        /// Renders the <see cref="SvgElement"/> and contents to the specified <see cref="SvgRenderer"/> object.
        /// </summary>
        /// <param name="renderer">The <see cref="SvgRenderer"/> object to render to.</param>
        protected override void Render(SvgRenderer renderer)
            // Do nothing. Children should NOT be rendered.