SvgElementAttribute.cs 873 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. #pragma warning disable
  6. namespace Svg
  7. {
  8. /// <summary>
  9. /// Specifies the SVG name of an <see cref="SvgElement"/>.
  10. /// </summary>
  11. [AttributeUsage(AttributeTargets.Class)]
  12. public sealed class SvgElementAttribute : Attribute
  13. {
  14. /// <summary>
  15. /// Gets the name of the SVG element.
  16. /// </summary>
  17. public string ElementName { get; private set; }
  18. /// <summary>
  19. /// Initializes a new instance of the <see cref="SvgElementAttribute"/> class with the specified element name;
  20. /// </summary>
  21. /// <param name="elementName">The name of the SVG element.</param>
  22. public SvgElementAttribute(string elementName)
  23. {
  24. this.ElementName = elementName;
  25. }
  26. }
  27. }
  28. #pragma warning restore