Little Registry Cleaner/Common Tools/TreeViewAdv/Tree/TreeModelEventArgs.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Text;
namespace Common_Tools.TreeViewAdv.Tree
{
public class TreeModelEventArgs: TreePathEventArgs
{
private object[] _children;
public object[] Children
{
get { return _children; }
}
private int[] _indices;
public int[] Indices
{
get { return _indices; }
}
/// <summary>
///
/// </summary>
/// <param name="parent">Path to a parent node</param>
/// <param name="children">Child nodes</param>
public TreeModelEventArgs(TreePath parent, object[] children)
: this(parent, null, children)
{
}
/// <summary>
///
/// </summary>
/// <param name="parent">Path to a parent node</param>
/// <param name="indices">Indices of children in parent nodes collection</param>
/// <param name="children">Child nodes</param>
public TreeModelEventArgs(TreePath parent, int[] indices, object[] children)
: base(parent)
{
if (children == null)
throw new ArgumentNullException();
if (indices != null && indices.Length != children.Length)
throw new ArgumentException("indices and children arrays must have the same length");
_indices = indices;
_children = children;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。