/// <summary> /// Get TreeList DragInsertPosition /// </summary> /// <param name="tree"></param> /// <returns></returns> public static DragInsertPosition GetDragInsertPosition(this TreeList tree) { PropertyInfo pi = typeof(TreeList).GetProperty("Handler", BindingFlags.Instance | BindingFlags.NonPublic); TreeListHandler handler = (TreeListHandler)pi.GetValue(tree, null); FieldInfo fi2 = typeof(TreeListHandler).GetField("fStateData", BindingFlags.Instance | BindingFlags.NonPublic); StateData stateData = (StateData)fi2.GetValue(handler); FieldInfo fi = typeof(DragScrollInfo).GetField("dragInsertPosition", BindingFlags.Instance | BindingFlags.NonPublic); return((DragInsertPosition)fi.GetValue(stateData.DragInfo)); }
public CustomPressedState(TreeListHandler handler) : base(handler) { }
public MyNodeDraggingState(TreeListHandler handler) : base(handler) { }