26 references to NodeFromHandle
System.Windows.Forms (26)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
710return tv.NodeFromHandle(next); 868return tv.NodeFromHandle(prev); 1191public static TreeNode? FromHandle(TreeView tree, IntPtr handle) => tree.NodeFromHandle(handle);
System\Windows\Forms\Controls\TreeView\TreeView.cs (23)
1096return NodeFromHandle(hItem); 1304return (hitem == IntPtr.Zero ? null : NodeFromHandle(hitem)); 1643TreeNode? node = hnode == 0 ? null : NodeFromHandle(hnode); 1684return (hnode == 0 ? null : NodeFromHandle(hnode)); 2062TreeNode? tn = NodeFromHandle(hnode); 2421TreeNode? node = NodeFromHandle(item.hItem); 2439e = new TreeViewCancelEventArgs(NodeFromHandle(item.hItem), false, TreeViewAction.Expand); 2444e = new TreeViewCancelEventArgs(NodeFromHandle(item.hItem), false, TreeViewAction.Collapse); 2462TreeNode? node = NodeFromHandle(item.hItem); 2490TreeNode? node = NodeFromHandle(nmtv->itemNew.hItem); 2520TreeNode? node = NodeFromHandle(nmtv->itemNew.hItem); 2562TreeNode? editingNode = NodeFromHandle(nmtvdi.item.hItem); 2588TreeNode? node = NodeFromHandle(nmtvdi.item.hItem); 2706TreeNode? node = NodeFromHandle((nint)nmtvcd->nmcd.dwItemSpec); 2803node = NodeFromHandle((nint)nmtvcd->nmcd.dwItemSpec); 2914if (hnode != 0 && tvhip.flags.HasFlag(TVHITTESTINFO_FLAGS.TVHT_ONITEM) && NodeFromHandle(hnode) is { } tn && !ShowNodeToolTips) 2947TreeNode? tn = NodeFromHandle(hnode); 3035OnNodeMouseClick(new TreeNodeMouseClickEventArgs(NodeFromHandle(hnode), button, 1, pos.X, pos.Y)); 3043TreeNode? treeNode = NodeFromHandle(hnode); 3195TreeNode node = NodeFromHandle(item->hItem)!; 3272TreeNode? node = NodeFromHandle(_mouseDownNode); 3310OnNodeMouseClick(new TreeNodeMouseClickEventArgs(NodeFromHandle(hnode), _downButton, 1, point.X, point.Y)); 3322OnNodeMouseDoubleClick(new TreeNodeMouseClickEventArgs(NodeFromHandle(hnode), _downButton, 2, point.X, point.Y));