SvgContentNode.cs 515 Bytes
Newer Older
1
namespace Svg
2
3
4
5
{
    public class SvgContentNode : ISvgNode
    {
        public string Content { get; set; }
6
7
8
9
10
11
12
13
14
15

        /// <summary>
        /// Create a deep copy of this <see cref="ISvgNode"/>.
        /// </summary>
        /// <returns>A deep copy of this <see cref="ISvgNode"/></returns>
        public ISvgNode DeepCopy()
        {
            // Since strings are immutable in C#, we can just use the same reference here.
            return new SvgContentNode { Content = this.Content };
        }
16
17
    }
}