一、类名Class

类名:PublicFunctions.Tree.ZTreeNodeModel

 

二、属性Properties

序号
类型属性名称属性说明
 1 int id 节点编号
 2 int pId 父节点编号
 3 string name 节点名称
 4 string corename 节点值
 5 bool IsNodeChecked 节点是否选中
 6 int Level 节点所在的层级
 7 List<string> ParentNameList 父级节点的值列表
 8 string FullPathValue 完整的节点路径值

 

三、方法Methods

1、序列化输出JSON

函数:public static string ToJSON(List<ZTreeNodeModel> TreeNodeList)

返回: string

 

2、OpenAllParentNode展开所有的父节点

函数:public static void OpenAllParentNode(List<ZTreeNodeModel> TreeNodeList, ZTreeNodeModel node)

返回: 无