TreeNode.cs 427 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. namespace Tree
  3. {
  4. public class TreeNode
  5. {
  6. private readonly List<int> childIds = new List<int>();
  7. public double X { get; set; }
  8. public double Y { get; set; }
  9. public int Type { get; set; }
  10. public int Id { get; set; }
  11. public bool IsFold { get; set; }
  12. public int ParentId { get; set; }
  13. public List<int> ChildIds
  14. {
  15. get
  16. {
  17. return this.childIds;
  18. }
  19. }
  20. }
  21. }