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

namespace Svg
{
    [DefaultProperty("Text")]
9
    [SvgElement("desc")]
davescriven's avatar
davescriven committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
    public class SvgDescription : SvgElement
    {
        private string _text;

        public string Text
        {
            get { return this._text; }
            set { this._text = value; }
        }

        public override string ToString()
        {
            return this.Text;
        }
24
25
26
27
28
29
30
31
32
33
34
35
36
37


		public override SvgElement DeepCopy()
		{
			return DeepCopy<SvgDescription>();
		}

		public override SvgElement DeepCopy<T>()
		{
			var newObj = base.DeepCopy<T>() as SvgDescription;
			newObj.Text = this.Text;
			return newObj;
		}

davescriven's avatar
davescriven committed
38
39
    }
}