Source/AdvTree/TreeAreaInfo.cs

(完整代码) 1KB

namespace DevComponents.AdvTree
{
	/// <summary>
	/// Summary description for TreeAreaInfo.
	/// </summary>
	internal class TreeAreaInfo
	{
		/// <summary>
		/// Reference to parent node in which child bounds the coordinates are. Can be null if no parent node contains given coordinates.
		/// </summary>
		public Node ParentAreaNode=null;
		/// <summary>
		/// Node which contains specified coordinates. Can be null if no node contains coordinates.
		/// </summary>
		public Node NodeAt=null;
		/// <summary>
		/// Previous reference node for given coordinates. If coordinates fall between two nodes this will indicate previous node or null.
		/// </summary>
		public Node PreviousNode=null;
		/// <summary>
		/// Next reference node for given coordinates. If coordinates fall between two nodes this will indicate next node or null.
		/// </summary>
		public Node NextNode=null;
	}

    internal class NodeDragInfo
    {
        /// <summary>
        /// Gets or sets the parent node drag node will be added to. When null the drag node is being added as top-level node.
        /// </summary>
        public Node Parent = null;
        /// <summary>
        /// Gets or sets the insert index of drag node into the parent's node Nodes collection.
        /// </summary>
        public int InsertIndex = -1;

        /// <summary>
        /// Initializes a new instance of the NodeDragInfo class.
        /// </summary>
        public NodeDragInfo()
        {
        }

        /// <summary>
        /// Initializes a new instance of the NodeDragInfo class.
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="insertIndex"></param>
        public NodeDragInfo(Node parent, int insertIndex)
        {
            Parent = parent;
            InsertIndex = insertIndex;
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。