LayerCollection.cs 797 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using FastReport.Utils;
  5. namespace FastReport.Map
  6. {
  7. /// <summary>
  8. /// Represents a collection of <see cref="MapLayer"/> objects.
  9. /// </summary>
  10. public class LayerCollection : FRCollectionBase
  11. {
  12. #region Properties
  13. /// <summary>
  14. /// Gets a layer with specified index.
  15. /// </summary>
  16. /// <param name="index">Index of a layer.</param>
  17. /// <returns>The layer with specified index.</returns>
  18. public MapLayer this[int index]
  19. {
  20. get { return List[index] as MapLayer; }
  21. set { List[index] = value; }
  22. }
  23. #endregion // Properties
  24. internal LayerCollection(Base owner) : base(owner)
  25. {
  26. }
  27. }
  28. }