using System.ComponentModel;
|
|
namespace DPumpHydr.WinFrmUI.WenSkin.Controls
|
{
|
public class TreeDataGridViewCellValues
|
{
|
private TreeDataGridViewRowNodeCollection nodes;
|
|
//当前级别
|
public int Level { get; set; }
|
//当前文本
|
public string Text { get; set; }
|
//节点伸缩值
|
public int Indent { get; set; } = 20;
|
|
//节点打开状态。true 打开
|
public bool CellState { get; set; } = false;
|
|
public string NodePath { get; set; }
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
|
[Category("Wen")]
|
[Description("子级数据集合")]
|
public TreeDataGridViewRowNodeCollection Nodes => nodes ??= new TreeDataGridViewRowNodeCollection();
|
public TreeDataGridViewRowNode TreeDataGridViewRowNode { get; set; }
|
public override string ToString()
|
{
|
return Text;
|
}
|
}
|
}
|