AxisYCollection.cs 740 B

1234567891011121314151617181920212223242526272829303132
  1. namespace IndexFormula.Finance
  2. {
  3. using System;
  4. using System.Collections;
  5. using System.Reflection;
  6. public class AxisYCollection : CollectionBase
  7. {
  8. public virtual int Add(FormulaAxisY fay)
  9. {
  10. return base.List.Add(fay);
  11. }
  12. public void Remove(FormulaAxisY value)
  13. {
  14. base.List.Remove(value);
  15. }
  16. public virtual FormulaAxisY this[int Index]
  17. {
  18. get
  19. {
  20. if (Index >= base.List.Count)
  21. {
  22. throw new Exception("Formula Y-Axis bind out of range.(" + Index + ")");
  23. }
  24. return (FormulaAxisY) base.List[Index];
  25. }
  26. }
  27. }
  28. }