2 writes to ContextMenuStrip
System.Windows.Forms (1)
System\Windows\Forms\Controls\TreeView\TreeNode.cs (1)
1359node.ContextMenuStrip = _contextMenuStrip;
System.Windows.Forms.Tests (1)
System\Windows\Forms\TreeNodeTests.cs (1)
4665ContextMenuStrip = value as ContextMenuStrip
13 references to ContextMenuStrip
System.Windows.Forms (6)
System\Windows\Forms\Controls\TreeView\TreeView.cs (6)
3057if (treeNode is not null && treeNode.ContextMenuStrip is not null) 3111if (treeNode.ContextMenuStrip is not null) 3113ContextMenuStrip menu = treeNode.ContextMenuStrip; 3428if (treeNode is not null && treeNode.ContextMenuStrip is not null) 3433if (ClientRectangle.Contains(client) && treeNode.ContextMenuStrip is not null) 3436treeNode.ContextMenuStrip.ShowInternal(this, client, keyboardActivated);
System.Windows.Forms.Tests (7)
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
25Assert.Null(treeNode.ContextMenuStrip);
System\Windows\Forms\TreeNodeTests.cs (6)
20Assert.Null(node.ContextMenuStrip); 60Assert.Null(node.ContextMenuStrip); 108Assert.Null(node.ContextMenuStrip); 151Assert.Null(node.ContextMenuStrip); 199Assert.Null(node.ContextMenuStrip); 4668treeNode.ContextMenuStrip.Should().Be(value as ContextMenuStrip);