1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Drawing;
- using System.Drawing.Drawing2D;
- using Svg.DataTypes;
- #pragma warning disable
- namespace Svg
- {
- /// <summary>
- /// The <see cref="SvgText"/> element defines a graphics element consisting of text.
- /// </summary>
- [SvgElement("text")]
- public class SvgText : SvgTextBase
- {
- /// <summary>
- /// Initializes the <see cref="SvgText"/> class.
- /// </summary>
- public SvgText() : base() { }
- /// <summary>
- /// Initializes a new instance of the <see cref="SvgText"/> class.
- /// </summary>
- /// <param name="text">The text.</param>
- public SvgText(string text)
- : this()
- {
- this.Text = text;
- }
- public override SvgElement DeepCopy()
- {
- return DeepCopy<SvgText>();
- }
- public override SvgElement DeepCopy<T>()
- {
- var newObj = base.DeepCopy<T>() 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;
- }
- }
- }
- #pragma warning restore
|