ObjectCollection.cs 1.1 KB

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