DialogComponentCollection.cs 1.3 KB

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