SvgDescription.cs 755 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
    public class SvgDescription : SvgElement
    {
12
13
14
15
16
17
18
19
        private string _text;

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

davescriven's avatar
davescriven committed
20
21
        public override string ToString()
        {
22
            return this.Text;
davescriven's avatar
davescriven committed
23
        }
24
25


26
27
28
29
30
31
32
33
		public override SvgElement DeepCopy()
		{
			return DeepCopy<SvgDescription>();
		}

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

davescriven's avatar
davescriven committed
38
39
    }
}