Source/AdvTree/TreeDragFeedbackEventArgs.cs
(完整代码) 1KBusing System;
using System.Text;
namespace DevComponents.AdvTree
{
/// <summary>
/// Defines the data for NodeDragFeedback event.
/// </summary>
public class TreeDragFeedbackEventArgs : EventArgs
{
/// <summary>
/// Gets or sets whether this drop location is accepted. Default value is true. You can set this to false to disable drop at this location.
/// </summary>
public bool AllowDrop = true;
/// <summary>
/// Gets or sets the parent node for the node that is being dragged. This can be null/nothing value to indicate a root top-level node that
/// is in AdvTree.Nodes collection.
/// </summary>
public Node ParentNode = null;
/// <summary>
/// Gets or sets the new insert position inside of ParentNode.Nodes collection for the node being dragged.
/// </summary>
public int InsertPosition = 0;
private Node _DragNode;
/// <summary>
/// Gets reference to the node being dragged.
/// </summary>
public Node DragNode
{
get { return _DragNode; }
#if FRAMEWORK20
set
{
_DragNode = value;
}
#endif
}
/// <summary>
/// Initializes a new instance of the TreeDragFeedbackEventArgs class.
/// </summary>
/// <param name="parentNode"></param>
/// <param name="insertPosition"></param>
public TreeDragFeedbackEventArgs(Node parentNode, int insertPosition, Node dragNode)
{
ParentNode = parentNode;
InsertPosition = insertPosition;
_DragNode = dragNode;
}
/// <summary>
/// Initializes a new instance of the TreeDragFeedbackEventArgs class.
/// </summary>
public TreeDragFeedbackEventArgs()
{
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。