ShapeCollection.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.IO;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using FastReport.Utils;
  6. namespace FastReport.Map
  7. {
  8. /// <summary>
  9. /// Holds the list of objects of <see cref="ShapeBase"/> type.
  10. /// </summary>
  11. public class ShapeCollection : FRCollectionBase
  12. {
  13. /// <summary>
  14. /// Gets or sets the element at the specified index.
  15. /// </summary>
  16. /// <param name="index">Index of an element.</param>
  17. /// <returns>The element at the specified index.</returns>
  18. public ShapeBase this[int index]
  19. {
  20. get { return List[index] as ShapeBase; }
  21. set { List[index] = value; }
  22. }
  23. /// <summary>
  24. /// Initializes a new instance of the <see cref="ShapeCollection"/> class with default settings.
  25. /// </summary>
  26. public ShapeCollection() : this(null)
  27. {
  28. }
  29. /// <summary>
  30. /// Initializes a new instance of the <see cref="ShapeCollection"/> class with specified owner.
  31. /// </summary>
  32. public ShapeCollection(Base owner)
  33. : base(owner)
  34. {
  35. }
  36. }
  37. }