GraphicsProperties.cs 866 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #region Using directives
  2. using System;
  3. using System.Windows.Forms;
  4. using System.Drawing;
  5. #endregion
  6. namespace DrawTools
  7. {
  8. /// <summary>
  9. /// Helper class used to show properties
  10. /// for one or more graphic objects
  11. /// </summary>
  12. class GraphicsProperties
  13. {
  14. private Color? color;
  15. private int? penWidth;
  16. public GraphicsProperties()
  17. {
  18. color = null;
  19. penWidth = null;
  20. }
  21. public Color? Color
  22. {
  23. get
  24. {
  25. return color;
  26. }
  27. set
  28. {
  29. color = value;
  30. }
  31. }
  32. public int? PenWidth
  33. {
  34. get
  35. {
  36. return penWidth;
  37. }
  38. set
  39. {
  40. penWidth = value;
  41. }
  42. }
  43. }
  44. }