SvgDescription.cs 657 Bytes
Newer Older
davescriven's avatar
davescriven committed
1
2
3
4
5
6
7
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace Svg
{
8
    [DefaultProperty("Text")]
9
    [SvgElement("desc")]
davescriven's avatar
davescriven committed
10
11
12
13
    public class SvgDescription : SvgElement
    {
        public override string ToString()
        {
Eric Domke's avatar
Eric Domke committed
14
            return this.Content;
davescriven's avatar
davescriven committed
15
        }
16
17


Eric Domke's avatar
Eric Domke committed
18
19
20
21
	public override SvgElement DeepCopy()
        {
            return DeepCopy<SvgDescription>();
        }
22

Eric Domke's avatar
Eric Domke committed
23
24
25
26
27
28
        public override SvgElement DeepCopy<T>()
        {
            var newObj = base.DeepCopy<T>() as SvgDescription;
            newObj.Text = this.Text;
            return newObj;
        }
29

davescriven's avatar
davescriven committed
30
31
    }
}