NonSvgElement.cs 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #pragma warning disable
  2. namespace Svg
  3. {
  4. public class NonSvgElement : SvgElement
  5. {
  6. public NonSvgElement()
  7. {
  8. }
  9. public NonSvgElement(string elementName)
  10. {
  11. this.ElementName = elementName;
  12. }
  13. public override SvgElement DeepCopy()
  14. {
  15. return DeepCopy<NonSvgElement>();
  16. }
  17. public override SvgElement DeepCopy<T>()
  18. {
  19. var newObj = base.DeepCopy<T>() as NonSvgElement;
  20. return newObj;
  21. }
  22. /// <summary>
  23. /// Publish the element name to be able to differentiate non-svg elements.
  24. /// </summary>
  25. public string Name
  26. {
  27. get
  28. {
  29. return ElementName;
  30. }
  31. }
  32. }
  33. }
  34. #pragma warning restore