using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
using Svg.DataTypes;
namespace Svg
{
///
/// The element defines a graphics element consisting of text.
///
[SvgElement("text")]
public class SvgText : SvgTextBase
{
///
/// Initializes the class.
///
public SvgText() : base() {}
///
/// Initializes a new instance of the class.
///
/// The text.
public SvgText(string text) : this()
{
this.Text = text;
}
public override SvgElement DeepCopy()
{
return DeepCopy();
}
public override SvgElement DeepCopy()
{
var newObj = base.DeepCopy() as SvgText;
newObj.TextAnchor = this.TextAnchor;
newObj.WordSpacing = this.WordSpacing;
newObj.LetterSpacing = this.LetterSpacing;
newObj.Font = this.Font;
newObj.FontFamily = this.FontFamily;
newObj.FontSize = this.FontSize;
newObj.FontWeight = this.FontWeight;
newObj.X = this.X;
newObj.Y = this.Y;
return newObj;
}
}
}