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