GroupDouble.cs 955 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. namespace FastReport.Export.Dxf.Groups
  3. {
  4. /// <summary>
  5. /// Double precision 3D point value
  6. /// </summary>
  7. public class GroupDouble : Group<double>
  8. {
  9. #region Public Properties
  10. public override int Code
  11. {
  12. get { return base.Code; }
  13. set
  14. {
  15. if (value >= 10 || value <= 39)
  16. base.Code = value;
  17. else
  18. throw new Exception("Code must be in range 10 - 39, but have got: " + value);
  19. }
  20. }
  21. public override double Value
  22. {
  23. get { return base.Value; }
  24. set
  25. {
  26. base.Value = value;
  27. }
  28. }
  29. #endregion Public Properties
  30. #region Public Constructors
  31. public GroupDouble(int code, double value) : base(code, value)
  32. {
  33. }
  34. #endregion Public Constructors
  35. }
  36. }